MCPcopy Create free account
hub / github.com/angular-ui/ui-router / addLinkFns

Function addLinkFns

test/angular/1.6/angular.js:9905–9924  ·  view source on GitHub ↗
(pre, post, attrStart, attrEnd)

Source from the content-addressed store, hash-verified

9903 ////////////////////
9904
9905 function addLinkFns(pre, post, attrStart, attrEnd) {
9906 if (pre) {
9907 if (attrStart) pre = groupElementsLinkFnWrapper(pre, attrStart, attrEnd);
9908 pre.require = directive.require;
9909 pre.directiveName = directiveName;
9910 if (newIsolateScopeDirective === directive || directive.$$isolateScope) {
9911 pre = cloneAndAnnotateFn(pre, {isolateScope: true});
9912 }
9913 preLinkFns.push(pre);
9914 }
9915 if (post) {
9916 if (attrStart) post = groupElementsLinkFnWrapper(post, attrStart, attrEnd);
9917 post.require = directive.require;
9918 post.directiveName = directiveName;
9919 if (newIsolateScopeDirective === directive || directive.$$isolateScope) {
9920 post = cloneAndAnnotateFn(post, {isolateScope: true});
9921 }
9922 postLinkFns.push(post);
9923 }
9924 }
9925
9926 function nodeLinkFn(childLinkFn, scope, linkNode, $rootElement, boundTranscludeFn) {
9927 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