MCPcopy Create free account
hub / github.com/angular-ui/ui-grid / controllersBoundTransclude

Function controllersBoundTransclude

lib/test/angular/1.4.3/angular.js:8161–8178  ·  view source on GitHub ↗
(scope, cloneAttachFn, futureParentElement)

Source from the content-addressed store, hash-verified

8159 // This is the function that is injected as `$transclude`.
8160 // Note: all arguments are optional!
8161 function controllersBoundTransclude(scope, cloneAttachFn, futureParentElement) {
8162 var transcludeControllers;
8163
8164 // No scope passed in:
8165 if (!isScope(scope)) {
8166 futureParentElement = cloneAttachFn;
8167 cloneAttachFn = scope;
8168 scope = undefined;
8169 }
8170
8171 if (hasElementTranscludeDirective) {
8172 transcludeControllers = elementControllers;
8173 }
8174 if (!futureParentElement) {
8175 futureParentElement = hasElementTranscludeDirective ? $element.parent() : $element;
8176 }
8177 return boundTranscludeFn(scope, cloneAttachFn, transcludeControllers, futureParentElement, scopeToChild);
8178 }
8179 }
8180 }
8181

Callers

nothing calls this directly

Calls 2

isScopeFunction · 0.70
boundTranscludeFnFunction · 0.70

Tested by

no test coverage detected