var coutas = [];
for (var i = 0; i < d.length; i++) {
coutas.push(JSON.parse(d[i].coutas));
}
for (var i = 0; i < coutas.length; i++) {
$scope.coutas = coutas[i];
}
That doesn't work
what I try to do is assign the variable coutas the scope.coutas
i'm using two for loop because that :
the firt loop , It is to tour the first array, and the second loop is to tour the seconds array
example : the firts loop tour the array 0 but inside the array 9 they are 22 objets.


forloop? Why do you not do so$scope.coutas = coutas?$scope.coutas = coutaslike @DmitriyLoskutov suggested.$scope.coutas.push()so no need to use second for loop$scope.coutas = coutas