blob: 6176633e276063436eb43b8ce87fe4d6ee26a705 [file] [log] [blame]
(function() {
'use strict';
angular.module('{{ngModule}}')
{{#each resources}}
/**
* @ngdoc service
* @name {{../ngModule}}.{{name}}
* @description Angular resource to fetch {{param.href}}
**/
.service('{{name}}', function($resource){
return $resource('{{param.href}}'{{#if param.name}}, { {{param.name}}: '@id' }{{/if}});
})
{{/each}}
})();