Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //productResource.js file
- (function () {
- 'use strict';
- angular
- .module('common.services')
- .factory('productResource', ['$resource', 'appSettings', productResource]);
- function productResource($resource, appSettings) {
- return $resource(appSettings.serverPath + '/api/products/:id');
- }
- }());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement