The only problem with 'track by' is when there are new information in array. In this case, the new information will not be displayed.
Is it possible to handle the new data? Em quarta-feira, 12 de fevereiro de 2014 15h08min41s UTC-2, Alexandre Verri escreveu: > > Hello Sander, > > I was wondering if any elegant solution like this existed. Thank you very > much for the information. It worked as expected. > > Regards, > Alexandre > > > > > Em quarta-feira, 12 de fevereiro de 2014 14h44min12s UTC-2, Sander Elias > escreveu: >> >> Hi Alexandre, >> >> You are reassigning your array every second. Angular has no way knowing >> that you put the same stuff again, so it re renders the whole thing. >> This is exactly where the track by option came from/for. >> >> Have a look: >> http://jsfiddle.net/zEQps/ >> >> 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/groups/opt_out.
