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;
}
Comments
Post a Comment