Matteo Scandolo | fbd486c | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 1 | (function() { |
| 2 | 'use strict'; |
| 3 | {{#if description}} |
Matteo Scandolo | 4b3bf7f | 2016-04-12 11:38:40 -0700 | [diff] [blame] | 4 | |
Matteo Scandolo | fbd486c | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 5 | /* |
| 6 | * {{description}} |
| 7 | */ |
| 8 | {{/if}} |
Matteo Scandolo | 4b3bf7f | 2016-04-12 11:38:40 -0700 | [diff] [blame] | 9 | |
Matteo Scandolo | fbd486c | 2016-04-13 10:19:55 -0700 | [diff] [blame] | 10 | angular.module('{{ngModule}}') |
| 11 | {{#each resources}} |
| 12 | .service('{{name}}', function($resource){ |
| 13 | return $resource('{{param.href}}'{{#if param.name}}, { {{param.name}}: '@id' }{{/if}}); |
| 14 | }) |
| 15 | {{/each}} |
| 16 | })(); |