Advertisement
Guest User

Untitled

a guest
Mar 1st, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. var tables = angular.module('tables',[])
  2.  
  3. .controller('setName', function ($scope) {
  4. $scope.userName = userName;
  5. $scope.userPassword= userPassword;
  6. });
  7.  
  8. </head>
  9. <script src="/socket.io-client/socket.io.js"></script>
  10. <script src="/angular/angular.min.js"></script>
  11. <body ng-app="tables">
  12. <div ng-controller="setName">
  13. User Name: <input type="text" ng-model="userName" ><br>
  14. Password: <input type="text" ng-model="userPassword" ><br><br>
  15.  
  16. User Name: {{userName}}<br>
  17. Password: {{userPassword}}<br>
  18.  
  19. </div>
  20. </body>
  21. </html>
  22.  
  23. Failed to instantiate module tables due to:
  24. Error: [$injector:nomod] http://errors.angularjs.org/1.5.0/$injector/nomod? p0=tables
  25. at Error (native)
  26. at http://localhost:3000/angular/angular.min.js:6:416
  27. at http://localhost:3000/angular/angular.min.js:25:136
  28. at b (http://localhost:3000/angular/angular.min.js:24:188)
  29. at http://localhost:3000/angular/angular.min.js:24:431
  30. at http://localhost:3000/angular/angular.min.js:39:287
  31. at n (http://localhost:3000/angular/angular.min.js:7:355)
  32. at g (http://localhost:3000/angular/angular.min.js:39:135)
  33. at fb (http://localhost:3000/angular/angular.min.js:43:164)
  34. at Ac.c (http://localhost:3000/angular/angular.min.js:20:449
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement