MCPcopy
hub / github.com/angular-ui/ui-router / addLinkFns

Function addLinkFns

test/angular/1.7/angular.js:10444–10463  ·  view source on GitHub ↗
(pre, post, attrStart, attrEnd)

Source from the content-addressed store, hash-verified

10442 ////////////////////
10443
10444 function addLinkFns(pre, post, attrStart, attrEnd) {
10445 if (pre) {
10446 if (attrStart) pre = groupElementsLinkFnWrapper(pre, attrStart, attrEnd);
10447 pre.require = directive.require;
10448 pre.directiveName = directiveName;
10449 if (newIsolateScopeDirective === directive || directive.$$isolateScope) {
10450 pre = cloneAndAnnotateFn(pre, {isolateScope: true});
10451 }
10452 preLinkFns.push(pre);
10453 }
10454 if (post) {
10455 if (attrStart) post = groupElementsLinkFnWrapper(post, attrStart, attrEnd);
10456 post.require = directive.require;
10457 post.directiveName = directiveName;
10458 if (newIsolateScopeDirective === directive || directive.$$isolateScope) {
10459 post = cloneAndAnnotateFn(post, {isolateScope: true});
10460 }
10461 postLinkFns.push(post);
10462 }
10463 }
10464
10465 function nodeLinkFn(childLinkFn, scope, linkNode, $rootElement, boundTranscludeFn) {
10466 var i, ii, linkFn, isolateScope, controllerScope, elementControllers, transcludeFn, $element,

Callers 1

applyDirectivesToNodeFunction · 0.70

Calls 2

cloneAndAnnotateFnFunction · 0.70

Tested by

no test coverage detected