Shadowing variables like this is weird and makes code difficult to
understand, but it's a red herring.  You can see this behavior with a
single scope and no repeaters.
http://codepen.io/anon/pen/jEOwPd

The expression {{n=n+1}} changes every time it is evaluated.  Angular
digests iterate until these expressions stabilize.  If they don't stabilize
after 10 iterations angular gives up.  I'm not sure where the 11th (or 1st)
iteration is coming from, maybe initialization?


Kai



On Thu, Nov 13, 2014 at 11:38 AM, Bhavin Patel <[email protected]>
wrote:

> Hi,
>
> I guess what your code is doing is adding 2 to the [0,1,2,3,4,5,6,7,8,9]
> for 11 times (as 11 cells in a column) and displaying the final result in
> all the rows..
>
> eg: for 0 = 0+2+2+2+2+2+2+2+2+2+2+2 = 22
>       for 1 = 1+2+2+2+2+2+2+2+2+2+2+2 = 23
>
> and so on...
>
> Does that make sense? Correct me if I am wrong.
>
> Bhavin
>
> --
> 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.
>

-- 
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