I got service in angular with defined function:
angular.module('services-data-service', []).factory('DataService', function ($resource) {
retu $resource('rest/data/:method/', {}, {
dictionary:{method:'GET', params:{method:'data1'}, isArray:false}
...
});
});
I fetch data in controller by simply calling: ReportsService.data1(), but after adding new line:
city:{method:'GET', params:{method:'city'}, isArray:false}
when I call it from controller, I get nothing, there is no response in network log, but when I try to obtain webservice manually by typing URL in browser it works. Any ideas, why I can't call web service from angular's controller?
