A lifecycle hook that is called after Angular has initialized all data-bound properties of a directive. Define an ngOnInit() method to handle any additional initialization tasks.
ngOnInit()
interface OnInit { ngOnInit(): void;}