Sha256: 98269b3fef5f4e8f501a7a6bd1a5302c97c603fcca3818102e032154cdd4c4a1
Contents?: true
Size: 533 Bytes
Versions: 1
Compression:
Stored size: 533 Bytes
Contents
angular.module('<%= @plural_model_name %>', ['ngResource']). factory('<%= @model_name %>', function($resource) { var <%= @model_name %> = $resource('/<%= @plural_model_name %>/:id', {id: '@id'}, { update: { method: 'PUT' }, destroy: { method: 'DELETE'} } ); <%= @model_name %>.prototype.destroy = function(cb) { return <%= @model_name %>.remove({id: this.id}, cb); }; return <%= @model_name %>; });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
explainer_angularjs_scaffold-0.0.21 | lib/generators/angularjs/scaffold/templates/plural_model_name.js |