Activity Forums Salesforce® Discussions What is @api in LWC?

  • Prachi

    Member
    September 27, 2019 at 11:39 am

    Hi,

    To expose a public property, decorate it with @api. Public properties define the API for a component. An owner component that uses the component in its markup can access the component’s public properties. Public properties are reactive. If the value of a reactive property changes, the component’s template rerenders any content that references the property.

    Thanks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos