in Angular by
Q:
What is ngOnInit ()?

▼ Show 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

 }
Angular JS
Learn More with Madanswer

Related questions

0 votes
asked Mar 5, 2020 in Angular by JackTerrance
...