Guest User

Untitled

a guest
Nov 23rd, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. $http({ method: 'POST',
  2. url: URL + '&user=' + $scope.vModel.username + '&password=' + $scope.vModel.password,
  3. headers: { 'Access-Control-Allow-Origin': '*' } }).
  4. then(function(response){})
  5.  
  6. $http({ method: 'POST',
  7. url: url, data: { user: $scope.vModel.username, password: $scope.vModel.password },
  8. headers: { 'Access-Control-Allow-Origin': '*' } }).then(function (response){})
Add Comment
Please, Sign In to add comment