• #29681
    Salesforce | Sanjana Sanjana #15
    Forcetalks

    What is the use of AuraEnabled Annotation in Salesforce?

    What is the use of AuraEnabled Annotation in Salesforce?

    Tagged: , , , ,

    #29951
    Forcetalks

    Hello Sanjana,

    Writing this annotation makes the method availaible in Lightning component. It simply enables the access to that particular Apex class through the java script code that we have written

    #34072
    Salesforce | Parul Parul #2
    Forcetalks

    Hi

    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.

     

    Thanks.

    #34116
    Salesforce | shariq shariq #1
    Forcetalks

    Hi,

    The AuraEnabled annotation provides support for Apex methods and properties to be used with the Lightning Component framework.
    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.

    Hope this helps!

    #34121
    Forcetalks

    Hello,

    We use AuraEnabled Annotation in Salesforce so that particular method is available for the Lightning component in Salesforce.

    Thanks.

Viewing 5 posts - 1 through 5 (of 5 total)

Please to reply to this topic.

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2018 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?