Hi Chris,

the 22 and so on, comes from the fact that somewhere in this mess, a cell 
is changed to a string.
well, I updated your sample a bit: http://codepen.io/anon/pen/emYBXw. This 
makes probably more sense.
Let me show you what you where doing, by programming the same thing in JS
that would be:

function test() {
    for (let x = 0 ; x < 7; x += 1) {
        for (let x =0 ; x < 7; x += 1) {            
            x = x + 2;
        }
    }
}

Note that let is the same as var, but with block scope. This is the same as 
working with scope in ngRepeat
While the above is a fully functional program, it doesn’t make much sense 
does it?

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/d/optout.

Reply via email to