-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Leonardo Santagada
committed
Nov 12, 2013
1 parent
b17507e
commit f31c7ab
Showing
2 changed files
with
27 additions
and
20 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
'use strict'; | ||
|
||
/* Filters */ | ||
(function (angular, Markdown) { | ||
'use strict'; | ||
|
||
angular.module('courseMaterial.filters', ["ngSanitize"]). | ||
filter('markdown', ['$window', function($window) { | ||
return function(text) { | ||
return text ? Markdown.getSanitizingConverter().makeHtml(text) : ""; | ||
}; | ||
}]); | ||
/* Filters */ | ||
|
||
angular.module('courseMaterial.filters', ["ngSanitize"]). | ||
filter('markdown', ['$window', function($window) { | ||
return function(text) { | ||
return text ? Markdown.getSanitizingConverter().makeHtml(text) : ""; | ||
}; | ||
}]); | ||
})(angular, Markdown); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
'use strict'; | ||
|
||
/* Services */ | ||
|
||
angular.module('courseMaterial.services', ['ngRoute', 'ngResource']). | ||
factory('CourseMaterial', function($resource){ | ||
return $resource('/api/course_material/:course/', {}, { | ||
update: {method: 'PUT'}, | ||
|
||
|
||
(function (angular) { | ||
'use strict'; | ||
|
||
/* Services */ | ||
|
||
angular.module('courseMaterial.services', ['ngRoute', 'ngResource']). | ||
factory('CourseMaterial', function($resource){ | ||
return $resource('/api/course_material/:course/', {}, { | ||
update: {method: 'PUT'} | ||
}); | ||
}). | ||
factory('Course', function($resource){ | ||
return $resource('/api/course/:course_slug/',{}); | ||
}); | ||
}). | ||
factory('Course', function($resource){ | ||
return $resource('/api/course/:course_slug/',{}); | ||
}); | ||
|
||
})(angular); |