When we use the angular cli to generate a new component there is a hook for ngOnInit by default. Since we already have a constructor in the class why do we need this ngOnInit hook?
ngOnInit
Login using Google
77 questions
58 answers
9 comments
54,771 users