SHARE
TWEET

Untitled

a guest Aug 12th, 2016 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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: ""}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top