Angular - Lifecycle Hooks
Consider an Angular component with these lifecycle hooks:
If the component receives new input twice, then is removed from the page, what is the correct order of console logs?
ngOnChanges() { console.log('Changes'); }
ngOnInit() { console.log('Init'); }
ngAfterViewInit() { console.log('After View'); }
ngOnDestroy() { console.log('Destroy'); }If the component receives new input twice, then is removed from the page, what is the correct order of console logs?
