I updated my AngularJS from 1.0.7 to 1.2rc1 yesterday to check out the new features. Everything is working fine, but I am encountering some problems with ngResource. Using these factory, I get dummy json file data:
angular.module('RESTServices', ['ngResource']) .factory('Customer', function($resource){ return $resource(base+'customer.json', {}, { 'query' : { method: 'GET', isArray: true, cache: caching } }); });
I insert a RESTService into the controller and use it like:
Customer.query({}, function(response){ $scope.customers = response; });
On the one hand, they represent an array of clients in $ scope.customers, and for others, additional objects ($ promise and $ are allowed) in the response. A screenshot of the console shows the permission object.

And if I want to repeat the answer, the iterator will go around 200 clients and $ prom and $ resolved, and I get errors because my code does not know how to handle these objects. In version 1.0.7, the response had a total of 200 clients.
Something is wrong? Do I have to check every item during iteration, if not allowed or allowed? The documentation at this point is not entirely clear.
source share