Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function () {
- 'use strict';
- angular
- .module('activity')
- .factory('CourseService', CourseService);
- CourseService.$inject = ['$http'/*Example: '$state', '$window' */];
- function CourseService($http/*Example: $state, $window */) {
- return {
- list: function () {
- return $http({
- url: 'api/courses',
- method: 'GET',
- headers: {
- 'Content-Type': 'application/json'
- }
- });
- }
- };
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement