Explain digest life-cycle in AngularJS?



Explain digest life-cycle in AngularJS?..

Answer / Shaista Khanam

The AngularJS digest life-cycle consists of three main phases:n
1. Scope $watch expressions: Watchers are created to monitor the changes in model data and are executed during this phase.n
2. Scope $digest: This is the core phase where Angular checks if any changes occurred in the application's data-bound properties, including model values or DOM manipulations. If changes are detected, a new digest cycle begins.n
3. View $apply/ $digest: After the digest phase, Angular applies updates to the view, and then triggers another digest cycle to ensure that all updates have been reflected correctly. If no changes are detected during this phase, no new digest cycle is initiated.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What is the use of codelyzer in angular 2 application.?

1 Answers  


What are components life-cycles?

1 Answers  


Explain zone in angular?

1 Answers  


What is cross site script inclusion (xssi)?

1 Answers  


Explain angular js boot process.

1 Answers  


Explain bazel?

1 Answers  


When will ngoninit be called?

1 Answers  


What is 'transfer data to and from the ui' in angularjs?

1 Answers  


Is angularjs better than react?

1 Answers  


List out the advantages of angularjs?

1 Answers  


Explain ng-bind directive angularjs?

1 Answers  


What are ngModel and how do we represent it?

1 Answers  


Categories