Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- httpreq = {
- method: 'POST',
- url: '/main/authenticate',
- headers: {
- 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8;',
- 'dataType': 'json'
- },
- data: {
- user: $scope.user,
- password: $scope.password
- }
- }
- $http(httpreq).success( function(res) {
- console.log(res);
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement