Hi Marko,

As Witold pointed out, the apply isn't optional. 
To answer your question, yes, this is a correct way to update from the 
outside. However, you need to be sure your change isn't going to have 
side-effects that are less pleasant.
While sometimes it's perfectly ok to do something like this, imagine that 
someone is reaching into your application and changes some variables on the 
fly. You need to be 
aware of this!

May I ask why you need to do this? can't you just adapt your angular app to 
support whatever you need, that's a much safer path to travel.

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