What are angular 2 hooks?
In Angular apps, hooks are functions that are called on particular stages of a component’s life. Hooks are essential if your app is based on the component architecture. Example for hooks is
$onChanges, etc. which are properties pre-defined by Angular and can be exposed on component controllers.