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 $onInit
, $onChanges
, etc. which are properties pre-defined by Angular and can be exposed on component controllers.
BY Best Interview Question ON 25 Dec 2019