My_Test_Repo/force-app/main/default/lwc/lifeCycleHooksParentComponent/lifeCycleHooksParentCompone...

25 lines
623 B
JavaScript

import { LightningElement } from 'lwc';
export default class LifeCycleHooksParentComponent extends LightningElement {
isChildVisible = false
constructor(){
super()
console.log('Parent Constructor Called');
}
connectedCallback(){
console.log('Parent Connected callback Called');
}
renderedCallback(){
console.log('Parent Rendered Callback Called');
}
errorCallback(err,stack){
console.log('Error',err.message);
console.log('Stack',stack);
}
handleClick(){
this.isChildVisible = !this.isChildVisible;
}
}