Question from the Angular - Fundamentals test

Explain the purpose of the ngOnInit() lifecycle hook in Angular.

Medium

What is the difference between ngOnInit() and constructor() in Angular?

Author: abdelghaniStatus: Published(Update proposal available)Question passed 630 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!