Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.controller('AdsController', function ($scope, $http) {
- $scope.items = [];
- $scope.getItems = function () {
- $http({
- method: 'GET',
- url: 'https://api.parse.com/1/classes/Products',
- headers: {'X-Parse-Application-Id': 'P9hWHgBCW4rmJpnEuyB9gjlUPReIWIZsrwRHS1sZ', 'X-Parse-REST-API-Key': 'YJHRqu6JrX1JDmHZ2Cs00ydQYjVvWdAJiBWnHpkC'}
- })
- .success(function (data, status) {
- $scope.items = data;
- })
- .error(function (data, status) {
- alert("Error");
- });
- };
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement