What is the difference between ngoninit and ngafterviewinit?
Answer / Hemant Pathak
ngOnInit is called after the component's inputs have been initialized, while ngAfterViewInit is called after Angular has finished rendering the initial view. ngAfterViewInit is useful for manipulating DOM elements that were created during the view initialization.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is ngfor in angular?
What is pipe function?
What is router and switch?
What is angular controllers?
Who invented angular?
What is two-way bindings?
What are the characteristics of 'scope'?
How to create a service in angularjs?
Should I use angular?
Is google using angular?
What are the difference between component and directive in angular 2?
What is ngaftercontentinit?