When using AngularJS, my view is structured like this:
<div class="sli1"
ng-init="values=[10,20,30,40,50]"
<div class="sli2"
ng-init="values2=[10,20,30,40,50]"
I am attempting to send the initial data models back to the controller for retrieval as follows:
$scope.data1= $scope.values;
$scope.data2= $scope.values2;
Then I intend to use them later in an array:
$scope.sli['values'][0];
$scope.sli['values'][1];
$scope.sli['values'][2];
$scope.sli['values'][3];
Unfortunately, I am not sure what I might be overlooking.