Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have been going through a lot of links eg this and this. But i have been unable to understand how does the data binding work. How does the code get modified when an object changes, I read about digest loop in angularjs and dirty checking but my question is how and when does these things run? Is there some kind of interval running which checks for the object changes ? Or is it based on some kind of setter function that automatically calls the respective handlers?

Please help

share|improve this question
    
possible duplicate of Databinding in AngularJS –  Rahul Tripathi Apr 8 at 4:58
    
Read that..there it has been mentioned that the dirty checking happens every digest loop or whenever the $apply is called. I want to know when the digest loop runs, is it based on some kind of interval or what? –  Fyre Apr 8 at 5:00
    
When the browser receives an event that can be managed by the angular context the $digest loop will be fired. angular-tips.com/blog/2013/08/watch-how-the-apply-runs-a-digest –  Reena Apr 8 at 5:04
    
I had the link last night. I was unable to understand one thing, for every change does the setter function sets the callback? –  Fyre Apr 8 at 5:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.