TRAINING CATEGORIES
TRAINING PROGRAMS
@Input() inputValue: string; ngOnChanges(changes: SimpleChanges) { if (changes.inputValue) { console.log('Input value changed to:', changes.inputValue.currentValue); } }
ngOnInit() { this.initializeData(); }
ngOnDestroy() { this.unsubscribeFromObservable(); }
ngDoCheck() { if (this.shouldUpdate) { this.updateData(); } }
ngAfterContentInit() { console.log('Content projected and initialized'); }
ngAfterContentChecked() { console.log('Content checked for changes'); }
ngAfterViewInit() { console.log('View initialized'); }
ngAfterViewChecked() { console.log('View checked for changes'); }
<input [value]="name">
<div [attr.role]="myAriaRole">...</div>
<div [class.extra]="isADelight">...</div>
<div [style.height.px]="myHeight">...</div>
We use cookies to make interactions with our websites and services easy and meaningful. Please read our Privacy Policy for more details.
AND GET