$resource doesn't return value AngularJS

Viewed 15

I am really new to AngularJS (let's say 20hours of exp) , but still got the task being backend developer in Java. Backend returns data for sure but below function doesn't get data. Can u tell me guys why? Or what should I check?

Api

function func2(id) {
   return $resource(URL + ':id/all', {id: id},
      {get: {method: 'GET', cache: true, isArray: true}})
      .query();
}
0 Answers
Related