This repository has been archived on 2022-01-02. You can view files and clone it, but cannot push or open issues or pull requests.
AriaNg/app/scripts/controllers/status.js

12 lines
414 B
JavaScript
Raw Normal View History

2016-05-22 05:47:47 +02:00
(function () {
'use strict';
2016-05-31 16:51:12 +02:00
angular.module('ariaNg').controller('Aria2StatusController', ['$rootScope', '$scope', 'aria2SettingService', function ($rootScope, $scope, aria2SettingService) {
2016-05-30 19:26:41 +02:00
$rootScope.loadPromise = (function () {
2016-05-31 16:51:12 +02:00
return aria2SettingService.getServerStatus(function (result) {
$scope.serverStatus = result;
});
2016-05-22 05:47:47 +02:00
})();
}]);
})();