What is the sequence of Angular Lifecycle Hooks?



What is the sequence of Angular Lifecycle Hooks?..

Answer / Malvika Prajapati

The sequence of Angular lifecycle hooks is as follows: $onInit, $onChanges, $doCheck, $onDestroy. However, it's important to note that not all hooks are called for every component or directive.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

Explain routeprovider in angularjs?

1 Answers  


What is ngstyle and ngclass?

1 Answers  


What are the ngmodule metadata properties?

1 Answers  


What is dependency injection (di) in angular 2?

1 Answers  


Define directives in angularjs.

1 Answers  


What is an angular 2 service?

1 Answers  


How does lazy load work?

1 Answers  


Is it a good or bad practice to use angular js together with jquery?

1 Answers  


What is difference between directive and component?

1 Answers  


How to use angular js data grid/ng-grid?

1 Answers  


How is angularjs compiled?

1 Answers  


How to set focus on the input field in angular 1.x?

1 Answers  


Categories