MCPcopy Create free account
hub / github.com/apache/cloudstack / addTextInterpolateDirective

Function addTextInterpolateDirective

tools/ngui/static/js/lib/angular.js:4583–4599  ·  view source on GitHub ↗
(directives, text)

Source from the content-addressed store, hash-verified

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) {

Callers 1

collectDirectivesFunction · 0.85

Calls 5

$interpolateFunction · 0.85
valueFnFunction · 0.85
safeAddClassFunction · 0.85
parentMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected