Hi Mark,

The refresh will take place in the next digest cycle. I suspect you expect 
the result right away. That's not how asynchronous code works. 
(remember JavaScript is single threaded!). it might help if you read 
through the 'Integration with the browser event loop' part in the guide. 
<https://docs.angularjs.org/guide/scope>

if you are changing the refresh value in a reaction on a outside event, you 
need indeed to call $apply, Calling $apply will kick in
an digest cycle. This is only needed if you makes changes to your data from 
functions that are called from outside angular.

Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to