Last active
August 29, 2015 14:10
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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