JavaScript Video Tutorial - Understanding the difference between $apply and $digest in AngularJS

preview_player
Показать описание
In this demonstration, we will demonstrate the difference between $apply and $digest functions in terms of which $scope objects are digested when those functions are invoked
Рекомендации по теме
Комментарии
Автор

It was a revelation for me that we need to promote the model modifications to UI with apply/digest - I thought previously that it was done automatically as essential part of two-way data binding

hyperborean
Автор

awesome..was hell confused.. Now its crystal clear ...Thanks a lot :-)

vikasdubey
Автор

very clear explanation...
thank you..

adoobi
Автор

I also observed that if the property defined using $rootScope is inside of the controller div in the view then both $digest and $apply does the same thing, updated value of $rootScope is displayed using $digest. However the changes doesn't reflect if the $rootScope property is outside of the controller in the view.

madhurichinthakindi
Автор

Great ....! i am also looking $watch ....

SunilKumar-xhvh