Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. var App= angular.module('myApp',[]);
  2. App.controller('MainCtrl', function ($scope ,$http) {
  3. $scope.userName ="usern";
  4. $scope.password ="pass";
  5.  
  6. $http({
  7. method :'GET',
  8. url:' paste url here',
  9. data: { username : $scope.userName , password: $scope.password},
  10.  
  11. headers: {'Content-Type': 'application/json'}
  12. }).success(function (data, status, headers, config)
  13. {
  14. console.log('status',status);
  15.  
  16. console.log('data',status);
  17. console.log('headers',status);
  18. });
  19. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement