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 5 years, 8 months ago by MOHIT.