Hi Sander,

And, thanks for the reply, but how i'm suppose to not do that?
put my variable inside other variable, then pass it to that? BTW, isn't it
reference call? so that's what make it hard...

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.

Reply via email to