The thing is that external process is updating records in db, so I don't know maybe I should try to implement some $watch in controller and if values are changed fire $rootScope.$apply. All the time I've tried to fire $apply I got the message that $digest or $apply is already running.
четверг, 13 марта 2014 г., 14:52:39 UTC+2 пользователь Paul Spaulding написал: > > Have you tried using $scope.$apply or $rootScope.$apply? It seems strange > that you would have to use $timeout. > > On Thursday, March 13, 2014 8:04:38 AM UTC-4, 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.
