I've been using the following code to get angular resources:
Schedules.query(function(response){
$scope.schedules = response;
});
And i therefore can use the following service function:
Schedules.prototype.isAvailable = function(holidayArray) {
But the problem is on the localside, it displays correctly as resource object:
schedules [Resource, Resource, Resource, Resource, Resource, Resource, $promise: Object, $resolved: true]
and on the server side:
schedules [u, u, u, u, u, u, u, u, u, u, u, u, $promise: Object, $resolved: true]
it displayed as u object and i cannot call the service function on production.
Maybe I am a newbie of angularjs, could anyone help me for that? Thanks a lot!