On Tue, Jun 16, 2015 at 8:35 AM, Hassan Faghihi <[email protected]> wrote:
> Hi Sander, > > And, thanks for the reply, but how i'm suppose to not do that? > If i treat the Messages as predefined list, so i can't manage it like it's > strongly typed, though i still hate that i can't strongly type it... And > this way my MessageList Class is not sure to work, depend on how javascript > handle array... if it pass reference maybe i can fix it.. i don't know, > game me time for this... > > And also what about the $apply? i though angular came to scene to automate > the stuff, so if i add some code i have to apply... can't at last i do > watch so i don't have to remember to apply in every single piece of my > application? how exactly can i watch a object same to one i have alreay... > > Thank you again, > Hassan F. > > > On Tue, Jun 16, 2015 at 8:04 AM, Sander Elias <[email protected]> > wrote: > >> Hi Hassan, >> >> Don’t ever use functions for the thing you are iterating on, in your case >> xxx.toArray(), as this will cause a new digest cycle, which then will >> cause an infinitive loop. >> >> Regards >> Sander >> >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "AngularJS" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/angular/U4ZV2RXAEMU/unsubscribe. >> To unsubscribe from this group and all its topics, 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. >> > > -- 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.
