You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Investigating the issue, I can see that jQuery will not execute the script tag because these conditions are not met:
// Evaluate executable scripts on first document insertion
for (i = 0; i < hasScripts; i++) {
node = scripts[ i ];
if (rscriptType.test(node.type || "") && !data_priv.access(node, "globalEval") && jQuery.contains(doc, node)) {
if (node.src) {
// Hope ajax is available...
jQuery._evalUrl(node.src);
} else {
jQuery.globalEval(node.textContent.replace(rcleanScript, ""));
}
}
}
The problem is that this condition evaluates to false: jQuery.contains(doc, node)
I believe this issue was introduced when animations were created because the document doesn't actually contain the template from ng-include until after $animate.enter(currentElement, null, $element); is called.
currentElement.html(response);
//By this time, jQuery has already tried to evaluate the script and decided NOT to because the document doesn't actually contain the element yet
$animate.enter(currentElement, null, $element);
//Now the document contains the element in the DOM