Angular components go through a lifecycle from creation to destruction. Lifecycle hooks let you tap into key moments to run custom logic. Lifecycle Sequence Hook Timing Common Use ngOnChanges When @Input() values change React to input changes ngOnInit After first ngOnChanges Fetch data, initialize logic ngDoCheck Every change detection run Custom change detection ngAfterContentInit After content projection Access projected content ngAfterContentChecked After projected content checked — ngAfterViewInit After view (and children) initialized Access DOM elements, charts ngAfterViewChecked After view checked — ngOnDestroy Before component is destroyed Cleanup subscriptions, timers Most Important Hooks Key Rules ngOnInit is for initialization logic — not the constructor ngOnDestroy must clean…