Explain ngOnInit () function
ngOnInit () function is a lifecycle hook which is called after completion of data-bound properties of the directive.
ngOnInit () function is a lifecycle hook which is called after completion of data-bound properties of the directive.