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.
Got the same bug while doing transclusion with manually added ngRepeats.
In the function "addTextInterpolateDirective", node will be valid and correctly pointing to the text node when textInterpolateLinkFn is first called.
When the watch executes, node will be empty, and node[0] will fail. I'm not sure why. IE only.
return function textInterpolateLinkFn(scope, node) {
var parent = node.parent(),
bindings = parent.data('$binding') || [];
bindings.push(interpolateFn);
parent.data('$binding', bindings);
if (!hasCompileParent) safeAddClass(parent, 'ng-binding');
scope.$watch(interpolateFn, function interpolateFnWatchAction(value) {
node[0].nodeValue = value;
});
};
Example code:
This <a href="#" tooltip-placement="left" tooltip="On the Left!"> {{amount.name}} </a>
is contained in a dynamically generated ng-repeat. Adding spaces around the {{}} fixes it in IE.
This is the same issue as described here: #8659 (comment) and the next two comments.
Bottom line: don't compile the same node twice. It leads to unexpected results, and IE even throws.
Here is the example: plunker
It shows nothing in IE all version.
the way to walk around this bug is add space between "}}" and "</"
The text was updated successfully, but these errors were encountered: