My_Test_Repo/force-app/main/default/lwc/lifeCycleHooksChildComponent/lifeCycleHooksChildComponen...

18 lines
534 B
JavaScript

import { LightningElement } from 'lwc';
export default class LifeCycleHooksChildComponent extends LightningElement {
constructor(){
super()
console.log('Child Constructor Called');
}
connectedCallback(){
console.log('Child Connected callback Called');
throw new Error ("Loading of child compoent is failed")
}
renderedCallback(){
console.log('Child Rendered Callback Called');
}
disconnectedCallback(){
alert('Child disconnected Callback Called');
}
}