lifeCycle

  1. ngOnChange

    Called after a bound Input Property (@Input()) changes

  2. ngOnInit

    Called once the component is initializated, after the constructor

  3. ngDoCheck

    Called during every change detection runs

  4. ngAfterContentInit

    Call after contect(ng-content) has been projected into view

  5. ngAfterContentChecked

    Call every time the project content(ng-content) has been checked

  6. ngAfterViewInit

    Call after the view of component (and its children) has been initializated

  7. ngOnDestroy

    Call once the component is about to destroy