Login
Remember
Register
Ask a Question
What is ngOnInit ()?
0
votes
asked
Jan 6, 2020
in
Angular
by
sharadyadav1986
What is ngOnInit ()?
#ngoninit
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 6, 2020
by
rajeshsharma
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
}
...