#1 Data Analytics Program in India
₹2,499₹1,499Enroll Now
5 min read
Question 14 of 46medium

Lifecycle Hooks

Component and directive lifecycle.

Lifecycle Hooks Order

  1. ngOnChanges: Input property changes
  2. ngOnInit: Component initialization
  3. ngDoCheck: Custom change detection
  4. ngAfterContentInit: Content projection done
  5. ngAfterContentChecked: Content checked
  6. ngAfterViewInit: View initialization done
  7. ngAfterViewChecked: View checked
  8. ngOnDestroy: Before destruction