Showing posts with label What is Digest Cycle In AngularJS ?. Show all posts
Showing posts with label What is Digest Cycle In AngularJS ?. Show all posts

Tuesday, 16 January 2018

What is Digest Cycle In AngularJS ?

What is Digest Cycle In AngularJS ?
            Digest Cycle is responsible for two way binding. When A directive like ng-model having some value in the  input control which is from $scope object of the controller , if user changes the exisiting value with some new value, then internally this Digest Cycle evauates.

In this Digest Cycle mainly three functions come in front, those are $watch(), $digest() and $apply().