Sha256: fad16512f9ff27f691f6f7030ea2999835cc175dba259e5050943d89975ac83f
Contents?: true
Size: 761 Bytes
Versions: 20
Compression:
Stored size: 761 Bytes
Contents
;(function() { 'use strict'; // Communicates with the 'on_the_mind_statements' server API. function OnYourMindStatements($resource) { var OnYourMindResource = $resource( '/social_networking/on_the_mind_statements/:id', { id: '@id' } ); function OnYourMind() {} // Create a new 'On the Mind Statement' on the server. // // returns {Promise} A promise of the request. OnYourMind.create = function(attributes) { var onYourMind = new OnYourMindResource({ description: attributes.description }); return onYourMind.$save(); }; return OnYourMind; } angular.module('socialNetworking.services') .service('OnYourMindResource', ['$resource', OnYourMindStatements]); })();
Version data entries
20 entries across 16 versions & 1 rubygems