Skip to main content

Posts

Showing posts from May, 2020

Change detection of input parameter in angular

We can find change detection of input parameter as follows:  @ Input ()  set   showLoader (value :   boolean ) {     this._showloader  =  value;      if  (this.showLoader) {       this.showspinner. showloader (this.viewContainerRef, this.tabCounter);     }      else  {       this.showspinner. hideLoader (this.viewContainerRef, this.tabCounter);     }   }    get   showLoader () :   boolean  {      return  this._showloader;   }