Lightning quick action
Apex class ========== public class AccountController { @AuraEnabled public static List<Contact> displaycons(Id accountId) { List<Contact> conlist=[SELECT LastName FROM Contact WHERE AccountId = :accountId]; System.debug('===Conlist size==='+conlist.size()); return conlist; } @AuraEnabled public static List<Opportunity> displayOpptys(Id accId) { List<Opportunity> opplist=[select Name from Opportunity where AccountId=:accId]; System.debug('===Opportunity list size==='+opplist.size()); return opplist; } } SpinnerComponent.cmp ==================== <aura:component implements="force:lightningQuickActionWithoutHeader,force:hasRecordId" ...