Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exampleApp.controller("ExampleController", function($scope, $http) {
- $scope.getData = function() {
- $http.get('api/product', { params: { "username": "value1", "password": "value2" } })
- .success(function(data) {
- $scope.username = data.username;
- $scope.password = data.password;
- })
- .error(function(data)
- alert("ERROR");
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement