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

Function boundTranscludeFn

lib/test/angular/1.7.0/angular.js:9386–9398  ·  view source on GitHub ↗
(transcludedScope, cloneFn, controllers, futureParentElement, containingScope)

Source from the content-addressed store, hash-verified

9384
9385 function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) {
9386 function boundTranscludeFn(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) {
9387
9388 if (!transcludedScope) {
9389 transcludedScope = scope.$new(false, containingScope);
9390 transcludedScope.$$transcluded = true;
9391 }
9392
9393 return transcludeFn(transcludedScope, cloneFn, {
9394 parentBoundTranscludeFn: previousBoundTranscludeFn,
9395 transcludeControllers: controllers,
9396 futureParentElement: futureParentElement
9397 });
9398 }
9399
9400 // We need to attach the transclusion slots onto the `boundTranscludeFn`
9401 // so that they are available inside the `controllersBoundTransclude` function

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected