app.js
405 Bytes
var mainApp = angular.module('mainApp',[
'ngRoute'
]);
mainApp.controller('mainAdminController', ['$scope', '$http',
function ($scope, $http, angularTable) {
$http({
method: 'GET',
url: 'send2api'
})
.then(function (response) {
$scope.data = response.data;
console.log(response.data[0])
});
}
]);