KENT RO Systems interview question

NgOninit vs Constructor

Interview Answer

Anonymous

12 Dec 2019

Constructor is the very first method which will be called and it is can be used for dependency injection object. While ngOnInit is the life cycle hook which will get called after onl0adChanges method.

KENT RO Systems Interview Question: NgOninit vs Constructor | Glassdoor