InterviewSolution
Saved Bookmarks
| 1. |
What are angular 2 hooks? |
|
Answer» 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. |
|