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
2016-05-31 22:51:12 +08:00

12 lines
414 B
JavaScript

(function () {
'use strict';
angular.module('ariaNg').controller('Aria2StatusController', ['$rootScope', '$scope', 'aria2SettingService', function ($rootScope, $scope, aria2SettingService) {
$rootScope.loadPromise = (function () {
return aria2SettingService.getServerStatus(function (result) {
$scope.serverStatus = result;
});
})();
}]);
})();