Skip to content

Instantly share code, notes, and snippets.

@cjstewart88 cjstewart88/foo.js Secret
Created Jan 28, 2016

Embed
What would you like to do?
angular.module('app.models')
.factory('Call', ['$resource', 'apiUrl', function($resource, apiUrl) {
var Call = $resource(apiUrl + '/calls/:id.json', {
id: '@id'
}, {});
return Call;
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.