I have 3 tabs in which one tab shows a table with list of employees. Works good when it is loaded the first time.ngOnInit Fetches data from server using http get. After that when I click add new employee to ...
Discy Latest Questions
I am calling router.navigate on same page with some query string parameters. In this case, ngOnInit() does not call. Is it by default or do I need to add anything else ?
Angular provides life cycle hook ngOnInit by default. Why should ngOnInit be used, if we already have a constructor?