Advertisement
Guest User

Untitled

a guest
Oct 21st, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. exampleApp.controller("ExampleController", function($scope, $http) {
  2.  
  3. $scope.getData = function() {
  4. $http.get('api/product', { params: { "username": "value1", "password": "value2" } })
  5. .success(function(data) {
  6. $scope.username = data.username;
  7. $scope.password = data.password;
  8. })
  9. .error(function(data)
  10. alert("ERROR");
  11. });
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement