note.js 289 B

123456789101112
  1. /*
  2. This is a way of handling ajax requests using NgResource, it performs a similar function
  3. to the Note Service.
  4. */
  5. angular.module('NoteWrangler').factory('Note', function NoteFactory($resource) {
  6. return $resource('/notes/:id', {}, {
  7. update: {
  8. method: "PUT"
  9. }
  10. });
  11. });