app.js
690 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;
$scope.age = response.data[0].faceAttributes.age;
$scope.emotion = response.data[0].faceAttributes.emotion;
$scope.gender = response.data[0].faceAttributes.gender;
$scope.hair = response.data[0].faceAttributes.hair.bald;
console.log(response.data[0])
});
}
]);