Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var App= angular.module('myApp',[]);
- App.controller('MainCtrl', function ($scope ,$http) {
- $scope.userName ="usern";
- $scope.password ="pass";
- $http({
- method :'GET',
- url:' paste url here',
- 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