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

Function controllersBoundTransclude

test/angular/1.3/angular.js:7802–7819  ·  view source on GitHub ↗
(scope, cloneAttachFn, futureParentElement)

Source from the content-addressed store, hash-verified

7800 // This is the function that is injected as `$transclude`.
7801 // Note: all arguments are optional!
7802 function controllersBoundTransclude(scope, cloneAttachFn, futureParentElement) {
7803 var transcludeControllers;
7804
7805 // No scope passed in:
7806 if (!isScope(scope)) {
7807 futureParentElement = cloneAttachFn;
7808 cloneAttachFn = scope;
7809 scope = undefined;
7810 }
7811
7812 if (hasElementTranscludeDirective) {
7813 transcludeControllers = elementControllers;
7814 }
7815 if (!futureParentElement) {
7816 futureParentElement = hasElementTranscludeDirective ? $element.parent() : $element;
7817 }
7818 return boundTranscludeFn(scope, cloneAttachFn, transcludeControllers, futureParentElement, scopeToChild);
7819 }
7820 }
7821 }
7822

Callers

nothing calls this directly

Calls 2

isScopeFunction · 0.70
boundTranscludeFnFunction · 0.70

Tested by

no test coverage detected