It is used when you need to work on two independent component which does not relate each other.
Events can be called by defining customEvent and passing it as an attribute to child component. e.g. Below mentioned is code for calling a parent method from child component. parentcomponent is the parent component for childcomponent, child component is defined within that and an attribute ‘onhandledisplay’ is passed which defines the method of parent component in...
One can use decorator @api recordId to fetch recordId from record page directly.
It is a function which is called after render of the component. It flows from child to parent.
It is a function which is called after connectedcallback() and it should return valid a HTML template. Render() overrides the standard rendering functionality.
It is a function which is called when an element is removed from the document.
It is a function which is called when an element is inserted into the document.
Constructor is called when a component is created which flows from parent to child. Child elements can’t be accessed as they don’t exist yet. Properties are assigned to component after construction and before the connectedcallback() hook. Element can be accessed using this.template.