function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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.