Why doesn't AppComponent have a default ngOnInit function?
When building an Angular project using the CLI, the root component - AppComponent does not have an ngOnInit block, but every other generated component has an ngOnInit block. Is it wrong to have ngOnInit in the root component?
+3
Kabir roy
source
to share
No one has answered this question yet
Check out similar questions:
563
378
209
168
164
164
151
106
101
94