diff options
Diffstat (limited to 'client.js')
| -rw-r--r-- | client.js | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/client.js b/client.js deleted file mode 100644 index fb612ed..0000000 --- a/client.js +++ /dev/null @@ -1,26 +0,0 @@ -var ioc = angular.module('ioc',[]); - -ioc.controller('ioctrl',function($scope){ - var soc= io(); - $scope.que=[]; - $scope.row=""; - $scope.name=""; - $scope.qsize=0; - - $scope.submit = function(){ - soc.emit("queadd",{"row":$scope.row,"name":$scope.name}); - $scope.row=""; - $scope.name=""; - }; - - soc.on("quedata",function(data){ - $scope.que=data; - $scope.qsize=data.length; - $scope.$apply(); - }); - - $scope.popfirst = function(){ - soc.emit("quepopfirst",""); - }; - -}); |
