Activity Forums Salesforce® Discussions What is the use of @api decorators in LWC?

  • Aditya

    Member
    December 21, 2020 at 6:49 am

    Decorators dynamically alter the functionality of a property or function. The ability to create decorators is part of ECMAScript, but these three decorators are unique to Lightning Web Components. @api: To expose a public property, decorate it with @api. Public properties define the API for a component.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos