Activity Forums Salesforce® Discussions What is use of @AuraEnabled annotation in Salesforce?

  • Ratnesh

    Member
    July 22, 2020 at 5:43 am

    <div data-md="61" lang="en-IN"><div aria-level="3" role="heading" data-attrid="wa:/description" data-hveid="CAsQAg">The AuraEnabled annotation enables Lightning components to access Apex methods and properties. The AuraEnabled annotation is overloaded, and is used for two separate and distinct purposes. Use @AuraEnabled on Apex class static methods to make them accessible as remote controller actions in your Lightning components.

    <div><div data-hveid="CAsQAw" data-ved="2ahUKEwjN4eeTk-DqAhUUQH0KHfG4BS4QFSgCMAF6BAgLEAM">
    </div></div></div></div>

  • MOHIT

    Member
    July 22, 2020 at 5:46 am

    The AuraEnabled annotation enables Lightning components to access Apex methods and properties.
    The AuraEnabled annotation is overloaded, and is used for two separate and distinct purposes.
    Use @AuraEnabled on Apex class static methods to make them accessible as remote controller actions in your Lightning components.
    Use @AuraEnabled on Apex instance methods and properties to make them serializable when an instance of the class is returned as data from a server-side action.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos