Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $scope.result = "";
- $http({
- method: 'POST',
- url: 'http://localhost:8000/api/v1/user/user_signin',
- data: { username: $scope.user.username, password: $scope.user.password },
- responseType:'json'
- }).then(function successCallback(response) {
- console.log('success');
- $scope.result = response;
- console.log($scope.result);
- }, function errorCallback(response) {
- console.log('error');
- console.log(response);
- });
- Object {data: null, status: 200, config: Object, statusText: ""}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement