Hi Lance,

In the current release of angular there is no alternative (yet!). I know 
there is work being done for the 1.5 version, that makes it possible to 
trigger a smaller digest (not the whole app, but only the relevant parts 
gets updates in that case)
However, this is still up in the air, and it has to bee seen if it lands. 

So, while that is not possible yet, there are a couple of things you can do 
now. 
In your example, you can create a directive that interfaces directly with a 
web-socket service, that does not need $scope at all. A directive can 
manipulate the DOM directly right? Nothing keeps you from updating your 
indicator directly, you don't need any scope manipulation for that. No 
scope manipulation means not $rootScope.$apply right?

Another options is throttling.  Do you really need to update your UI on 
every incomming message? My guess is that you can bundle your updates, and 
update once every 500Ms (or whatever number is acceptable to you).

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