0 votes
in Angular by
What is ngOnInit ()?

1 Answer

0 votes
by
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

 }
...