Question from the Angular - Fundamentals test

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

Waiting for validation
Original question

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

New question

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

Author: TimothéeStatus: Waiting for validation(Update)Question not yet passed
0
Community EvaluationsNo one has reviewed this question yet, be the first!