Answers for "basic lighning app"

0

basic lighning app

// Apex Controller for Contact List Lightning Componentpublic class ContactListController {            @AuraEnabled    public static List<Contact> getContactList(List<Id> accountIds) {        // Getting the list of contacts from where Id is in accountIds                List<Contact> contactList = [SELECT Id, Name, Email, Phone, AccountId FROM Contact WHERE AccountId in :accountIds];                // Returning the contact list        return contactList;    }}
Posted by: Guest on March-08-2021

Browse Popular Code Answers by Language