The client doesn't know of changes on the server side so there is nothing 
to update in the view. 

You can do things like:
 - polling w ajax for changes i.e. use $timeout to use $http to get updated 
data
 - use some push technology like Server Sent Events, Web Sockets etc to 
have the changes on server push the updated data to the client

No about of $apply is going to make the data change on the client. the 
client needs to ask for the data or the server needs to push it.



On Thursday, March 13, 2014 5:04:38 AM UTC-7, Denis J. Cirulis wrote:
>
> Hello,
>
> what's the correct way to watch for changes in model ?
> There is ng-repeat with some data. When object is added to the collection 
> it will have some state like 'operation pending' while in the background 
> there are some jobs on the server side populating information for this 
> object and adding new objects.
> Changes in ng-repeat appears only when user refreshes the view, is there a 
> way to do it w/o user interaction ? I was thinking of $timeout but maybe 
> there is a more elegant way to do it.
>

-- 
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