Advertisement
Guest User

Untitled

a guest
Aug 12th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. $scope.result = "";
  2. $http({
  3. method: 'POST',
  4. url: 'http://localhost:8000/api/v1/user/user_signin',
  5. data: { username: $scope.user.username, password: $scope.user.password },
  6. responseType:'json'
  7. }).then(function successCallback(response) {
  8. console.log('success');
  9. $scope.result = response;
  10. console.log($scope.result);
  11. }, function errorCallback(response) {
  12. console.log('error');
  13. console.log(response);
  14. });
  15.  
  16. Object {data: null, status: 200, config: Object, statusText: ""}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement