How digest cycle works in Latest Angular?
Answers
Answered by
1
The $digest cycle starts as a result of a call to $scope.$digest() . Assume that you change a scope model in a handler function through the ng-click directive. In that case AngularJS automatically triggers a $digest cycle by calling $digest() . When the $digest cycle starts, it fires each of the watchers.
sugnan:
thank u
Answered by
1
Explanation:
Digest cycle is what Angular JS triggers when a value in the model or view is changed. The cycle sets off the watchers which then match the value of model and view to the newest value. Digest cycle automatically runs when the code encounters a directive.
Similar questions