After creating a component/directive by calling its constructor, Angular calls the lifecycle hook methods in the following sequence at specific moments:
- ngOnChanges()
- ngOnInit()
- ngDoCheck()
- ngAfterContentInit()
- ngAfterContentChecked()
- ngAfterViewInit()
- ngAfterViewChecked()
- ngOnDestroy()
More detail
0 comments:
Post a Comment