Activity Forums Salesforce® Discussions Why do we use @AuraEnabled annotation in Salesforce?

  • Aditya

    Member
    June 1, 2020 at 5:09 pm

    Hi,
    The @AuraEnabled annotation enables client- and server-side access to an Apex controller method. Providing this annotation makes your methods available to your Lightning components (both Lightning web components and Aura components). ... You can cache method results only for methods that retrieve data but do not modify it.

  • Ayush

    Member
    June 2, 2020 at 7:01 am

    The @AuraEnabled annotation enables client- and server-side access to an Apex controller method.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos