app js. //creates the server var app = angular.module('myApp', ['ngRoute']); app.factory("services", ['$http', function($http) { var serviceBase = 'services/' var obj = {}; //busca os dados do…
Try it this way: $result = array(); while($row = $r->fetch_assoc()){ $result[] = $row; } json_encode($data); This should solve your problem, have to see your server call tbm: return…