Skip to content

Instantly share code, notes, and snippets.

@basham
Last active August 29, 2015 14:10
Show Gist options
  • Save basham/bfd8d7677884bbea5ef7 to your computer and use it in GitHub Desktop.
Save basham/bfd8d7677884bbea5ef7 to your computer and use it in GitHub Desktop.
Demonstrating how JSON fixtures get replaced by endpoints, in the Kuali Student Course Registration proof of concept.
'use strict';
angular.module('kscrPocApp')
.factory('termsService', function ($resource, apiService) {
return $resource(apiService.get('terms'), {}, {
query: {
method: 'GET',
cache: true,
isArray: true
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment