OnInit
interface
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.
API
Usage Notes
interface OnInit { ngOnInit(): void;}}
Jump to details