Skip to content

Commit

Permalink
compile
Browse files Browse the repository at this point in the history
  • Loading branch information
Aakil Fernandes authored and Aakil Fernandes committed Oct 28, 2015
1 parent 1b0a4ef commit 48e359c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion angular-marked.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@
</example>
*/

.directive('marked', ['marked', '$templateRequest', function (marked, $templateRequest) {
.directive('marked', ['marked', '$templateRequest', '$compile', function (marked, $templateRequest, $compile) {
return {
restrict: 'AE',
replace: true,
Expand Down Expand Up @@ -351,6 +351,7 @@
function set(text) {
text = unindent(text || '');
element.html(marked(text, scope.opts || null));
$compile(element.contents())(scope)
}

}
Expand Down

0 comments on commit 48e359c

Please sign in to comment.