Activity Forums Salesforce® Discussions What is connectedCallback in LWC in salesforce?

  • MOHIT

    Member
    September 10, 2020 at 1:56 pm

    connectedCallback()
    This callback method called when the element is inserted into a document.
    This method lifecycle flows from Parent to Child Component.
    we can’t access child elements in the component body because they don’t exist yet.

    You can access the host element with this.template.

    • This reply was modified 4 years, 2 months ago by  MOHIT.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos