Sha256: cec71b50540e209adbd9f967b44e181791134417a9ca2214b7955b55f92d0fa3
Contents?: true
Size: 541 Bytes
Versions: 4
Compression:
Stored size: 541 Bytes
Contents
angular.module('<%= @plural_model_name%>', ['ngResource']). factory('<%= @model_name%>', ['$resource', 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
4 entries across 4 versions & 2 rubygems