Skip to content

Commit 2488eed

Browse files
author
Hannes Kamecke
committed
fixed directive template implementation for replace==false and NS==svg
1 parent 410f7c6 commit 2488eed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ng/compile.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1762,7 +1762,9 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
17621762

17631763
ii = directives.length;
17641764
} else {
1765-
$compileNode.html(directiveValue);
1765+
$template = removeComments(wrapTemplate(directive.templateNamespace, trim(directiveValue)));
1766+
$compileNode.empty();
1767+
$compileNode.append($template);
17661768
}
17671769
}
17681770

0 commit comments

Comments
 (0)