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.

  • [adinserter block='9']
  • 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.