KENT RO Systems Interview Question

NgOninit vs Constructor

Interview Answer

Anonymous

Dec 12, 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.