Explain about lifecycle hook in angular?



Explain about lifecycle hook in angular?..

Answer / Manu Devi

Lifecycle hooks in AngularJS allow you to execute code at various stages of a component's life cycle. Some common hooks include $postLink (after the view has been linked), $onChanges (when the input properties change), and $onDestroy (just before the component is destroyed).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What is spa in angular?

1 Answers  


What is bootstrapping in angular js?

1 Answers  


List some new features comes with angular6

1 Answers  


How to access jQLite or jQuery with AngularJS?

1 Answers   SLK Software,


What is $q service and when to use it?

1 Answers  


How long will it take to learn react?

1 Answers  


What is templateref and viewcontainerref?

1 Answers  


What are angular classes?

1 Answers  


What Is The Difference Between One-Way Binding And Two-Way Binding?

1 Answers  


What is mvc application?

1 Answers  


How to configure angular routes?

1 Answers  


How many modules can be used in a single html page?

1 Answers  


Categories