public with sharing class LwcController {
// Retrive list of contact list
@AuraEnabled
public static List<Contact> getContactList() {
return [SELECT Id,AccountId, FirstName,LastName,Email,Phone FROM Contact limit 10];
}
}
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Please use below code:-
displayContactsOnButtonClick.html:-
displayContactsOnButtonClick.js-meta.xml :-
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh