Google News
logo
Angular - Interview Questions
What is ngOnInit() ? How to define it ?
ngOnInit() :  Is a lifecycle hook that is called after Angular has finished initializing all data-bound properties of a directive. It is defined as:
Interface OnInit {
 ngOnInit() : void
 }
Advertisement