How can I iterate over this JSON values with AngularJS ng-repeat?
{
"timestamp": "Wed Apr 02 2014, 19:03:19",
"test": [
441.02,
null,
null,
460.99,
485.91,
501,
null,
null,
null,
null
],
"test1": [
437,
null,
null,
464.989,
488.52,
499.996,
null,
null,
null,
null
],
"test3": [
10.85,
null,
null,
10.9,
10.9,
10.9,
null,
null,
null,
null
]
}
And this is the controller Im using:
var myJson = angular.module('myJson', []);
function PostsCtrlAjax($scope, $http)
{
$http({method: 'POST', url: 'graphs.json'}).success(function(data)
{
$scope.values = data; // response data
});
}
I wanna show all the values in test/1/2/3 in some html bootstrap table.
And also, how can I store all those values in some array[] with JavaScript? Thanks in advance!