Advertisement
Guest User

Untitled

a guest
Mar 5th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. var cs = angular.module('csw', []);
  2. cs.controller('login',['$scope', function($rootScope, $scope, $http) {
  3. $scope.showLogin=true;
  4. $http.post('http://localhost:8080/csw/rest/cs/admin/login?userName=' + $scope.UserName + '&password=' + $scope.Password)
  5. }]);
  6.  
  7. <!-- login -->
  8. <div ng-controller="login" ng-show="showLogin"
  9. style="border: 2px solid black">
  10.  
  11. <p>
  12. UserName: <input type="text" ng-model="UserName" value="admin">
  13. Password: <input type="text" ng-model="Password" value="1234">
  14. </p>
  15. <hr />
  16. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement