Advertisement
fdiazb

Untitled

May 10th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. (function () {
  2. 'use strict';
  3.  
  4. angular
  5. .module('activity')
  6. .factory('CourseService', CourseService);
  7.  
  8. CourseService.$inject = ['$http'/*Example: '$state', '$window' */];
  9.  
  10. function CourseService($http/*Example: $state, $window */) {
  11.  
  12. return {
  13. list: function () {
  14. return $http({
  15. url: 'api/courses',
  16. method: 'GET',
  17. headers: {
  18. 'Content-Type': 'application/json'
  19. }
  20. });
  21. }
  22. };
  23. }
  24. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement