- Shell module created.

- Device table now almost works.
This commit is contained in:
Gunther Brunner
2014-03-19 19:36:58 +09:00
parent 0c9af4a436
commit 7e4f9bd0cd
6 changed files with 89 additions and 20 deletions

View File

@@ -0,0 +1,16 @@
module.exports = function ShellCtrl($scope) {
$scope.results = []
$scope.run = function(command) {
var cmd = $scope.control.shell(command)
return cmd.promise
.progressed(function(results) {
$scope.results = results
$scope.$digest()
})
.then(function(results) {
$scope.results = results
$scope.$digest()
})
}
}