We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am having a $resource defined as factory like below,
(function() { 'use strict'; angular.module('module-name').factory('factory-name', factoryImplementation); factoryImplementation.$inject = ['$resource'];
/* @ngInject */ function factoryImplementation($resource) { return $resource('', {}, { getProducts : { method : 'GET', url : 'http://locahost:8080/product', params : {} }, getProductById : { method : 'GET', url : 'http://locahost:8080/product/:id', params : {} } }); }
})();
I just replaced $resource with $cachedResource. It is not working.
Can you help how can I do this?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am having a $resource defined as factory like below,
product-svc.js
(function() {
'use strict';
angular.module('module-name').factory('factory-name', factoryImplementation);
factoryImplementation.$inject = ['$resource'];
})();
I just replaced $resource with $cachedResource. It is not working.
Can you help how can I do this?
The text was updated successfully, but these errors were encountered: