- Add ngEnter.

This commit is contained in:
Gunther Brunner
2014-03-31 19:14:02 +09:00
parent b0a32113cb
commit 553b89f764
8 changed files with 57 additions and 16 deletions

View File

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