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

14 lines
446 B
JavaScript
Raw Normal View History

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