Angularjs $ http get method para dados JSONP sem o parâmetro CALLBACK [duplicado]
Esta pergunta já tem uma resposta aqui:
Não é uma API JSONP legal - Como obter dados sem o parâmetro CALLBACK 1 respostaEstou com problemas imprimindo na tabela, algum JSON que está no servidor. Este é o meu JSON
process([
{
"name": "A",
"value": "41"
},
{
"name": "B",
"value": "71"
},
{
"name": "C",
"value": "20"
}],"2017.07.11 15:48:33");
Meu controlador:
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);
});
E este é o meu 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>
Tem alguma ideia de onde estou errado? tnx