Statistics
The Highest Post







Statistics
Count 94
Avg 21.00
Min 21
Max 21
Angualr Top questions

Details



Peter Agyekum What is ngOnInit ()? ngOnInit is a life cycle hook called by Angular to indicate that the Angular is done creating the component. In order to use OnInit we have to import it in the component class like this: import {Component, OnInit} from '@angular/core'; Actually implementing OnInit in every component is not mandatory.
Related Topics