Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var cs = angular.module('csw', []);
- cs.controller('login',['$scope', function($rootScope, $scope, $http) {
- $scope.showLogin=true;
- $http.post('http://localhost:8080/csw/rest/cs/admin/login?userName=' + $scope.UserName + '&password=' + $scope.Password)
- }]);
- <!-- login -->
- <div ng-controller="login" ng-show="showLogin"
- style="border: 2px solid black">
- <p>
- UserName: <input type="text" ng-model="UserName" value="admin">
- Password: <input type="text" ng-model="Password" value="1234">
- </p>
- <hr />
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement