+ Start a Discussion
Abhishek Kumar 149Abhishek Kumar 149 

what is use of the annotation @AuraEnabled

Aditya Khedekar 7Aditya Khedekar 7
The @AuraEnabled keyword exposes an Apex method to the Aura framework for use in Lightning Components. If you're asking why Salesforce doesn't just automatically expose all methods, I'm not quite sure. Possibly due to performance concerns.