Skip to content

Commit 532c7fe

Browse files
committed
Quick fix(directive)
Just wrapped raw html string as an element. This addresses Issue #194.
1 parent 08246d1 commit 532c7fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ocLazyLoad.directive.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}, moduleName => {
1919
if(angular.isDefined(moduleName)) {
2020
$ocLazyLoad.load(moduleName).then(() => {
21-
$animate.enter(content, $element);
21+
$animate.enter(angular.element(content), $element);
2222
let contents = element.contents();
2323
angular.forEach(contents, content => {
2424
if(content.nodeType !== 3) { // 3 is a text node

0 commit comments

Comments
 (0)