Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $http({
- method :'POST',
- url:'http://api.mywebsite.com.localhost/httpTest?callback=JSON_CALLBACK',
- data: { username : $scope.userName , password: $scope.password},
- headers: {'Content-Type': 'application/json'}
- }).success(function (data, status, headers, config) {
- console.log('status',status);
- console.log('data',status);
- console.log('headers',status);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement