I have problem by printing in the table, some JSON that is on the server. This is my JSON
process([
{
"name": "A",
"value": "41"
},
{
"name": "B",
"value": "71"
},
{
"name": "C",
"value": "20"
}],"2017.07.11 15:48:33");
My controller:
myApp.controller('liveTable', function ($scope, $http) {
$http.get('http://something.com/get.php?jsonp=2017')
.then(function (response) {
$scope.myData= response.data;
console.log(response.data);
});
And this is my HTML
<div class="liveTable" ng-controller="liveTable">
<table>
<tr ng-repeat="item in myData.process">
<td>{{item.name}}</td>
<td>{{item.value}}</td>
</tr>
</table>
</div>
Have any idea where I'm wrong? tnx