Hi Tomber... Have you looked at the javascript console. If you do, the problem should be obvious:
*Error: [ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: valeur in inbox, Duplicate key: number:0* Here is a version <http://plnkr.co/edit/ylcHI7?p=preview> that fixes your problem Justin On Tuesday, October 7, 2014 6:10:10 PM UTC+2, [email protected] wrote: > > Hi > > I am trying to have an automatic update of the view of an array of > elements returned by a service using ng-repeat. The problem is that, if I > add elements to my array in my service, this change is not automatically > reflected by the ng-repeat of my view. I have to leave the page and come > back (or force refresh) to see the change. > I have made a plunker to try to show the issue: > http://plnkr.co/edit/ZVgBoQEUs8IX8yskHDLF > If you run the code for a few seconds, you will see that the number of > displayed "values" would stop around 4 or 5 values whereas the "Number of > values" variable is correctly updated. > So it looks like the ng-repeat function used to display individual values > stopped to be called after a few updates. > Any idea about the reason of this behaviour and how to fix 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.
