(directives, text)
| 4581 | |
| 4582 | |
| 4583 | function addTextInterpolateDirective(directives, text) { |
| 4584 | var interpolateFn = $interpolate(text, true); |
| 4585 | if (interpolateFn) { |
| 4586 | directives.push({ |
| 4587 | priority: 0, |
| 4588 | compile: valueFn(function textInterpolateLinkFn(scope, node) { |
| 4589 | var parent = node.parent(), |
| 4590 | bindings = parent.data('$binding') || []; |
| 4591 | bindings.push(interpolateFn); |
| 4592 | safeAddClass(parent.data('$binding', bindings), 'ng-binding'); |
| 4593 | scope.$watch(interpolateFn, function interpolateFnWatchAction(value) { |
| 4594 | node[0].nodeValue = value; |
| 4595 | }); |
| 4596 | }) |
| 4597 | }); |
| 4598 | } |
| 4599 | } |
| 4600 | |
| 4601 | |
| 4602 | function addAttrInterpolateDirective(node, directives, value, name) { |
no test coverage detected