This commit is contained in:
2020-12-24 11:38:16 +03:00
parent a0591c39a6
commit 899da1a967
5 changed files with 94 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
(function () {
'use strict';
angular
.module('app')
.controller('TestHelloCtrl', TestHelloCtrl);
TestHelloCtrl.$inject = ['$scope', 'smartRequest', '$location', 'Notification'];
function TestHelloCtrl($scope, smartRequest, $location, Notification) {
$scope.users = [];
$scope.getUsers = function () {
smartRequest.get('php/hello', function (data) {
$scope.users = data.users;
});
};
$scope.update = function () {
$scope.getUsers();
};
$scope.update();
}
})();