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

Function controllersBoundTransclude

test/angular/1.4/angular.js:8597–8614  ·  view source on GitHub ↗
(scope, cloneAttachFn, futureParentElement)

Source from the content-addressed store, hash-verified

8595 // This is the function that is injected as `$transclude`.
8596 // Note: all arguments are optional!
8597 function controllersBoundTransclude(scope, cloneAttachFn, futureParentElement) {
8598 var transcludeControllers;
8599
8600 // No scope passed in:
8601 if (!isScope(scope)) {
8602 futureParentElement = cloneAttachFn;
8603 cloneAttachFn = scope;
8604 scope = undefined;
8605 }
8606
8607 if (hasElementTranscludeDirective) {
8608 transcludeControllers = elementControllers;
8609 }
8610 if (!futureParentElement) {
8611 futureParentElement = hasElementTranscludeDirective ? $element.parent() : $element;
8612 }
8613 return boundTranscludeFn(scope, cloneAttachFn, transcludeControllers, futureParentElement, scopeToChild);
8614 }
8615 }
8616 }
8617

Callers

nothing calls this directly

Calls 2

isScopeFunction · 0.70
boundTranscludeFnFunction · 0.70

Tested by

no test coverage detected