Angular / Angular basics
Difference between ngOnInit and ngAfterViewInit of Angular2.
ngOnInit is a life cycle hook called by Angular2 to indicate that Angular is done creating the component.
ngAfterViewInit is also a lifecycle hook that is called after a component's view has been fully initialized.
More Related questions...