MCPcopy Index your code
hub / github.com/angular-ui/ui-router / boundTranscludeFn

Function boundTranscludeFn

test/angular/1.6/angular.js:9347–9359  ·  view source on GitHub ↗
(transcludedScope, cloneFn, controllers, futureParentElement, containingScope)

Source from the content-addressed store, hash-verified

9345
9346 function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) {
9347 function boundTranscludeFn(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) {
9348
9349 if (!transcludedScope) {
9350 transcludedScope = scope.$new(false, containingScope);
9351 transcludedScope.$$transcluded = true;
9352 }
9353
9354 return transcludeFn(transcludedScope, cloneFn, {
9355 parentBoundTranscludeFn: previousBoundTranscludeFn,
9356 transcludeControllers: controllers,
9357 futureParentElement: futureParentElement
9358 });
9359 }
9360
9361 // We need to attach the transclusion slots onto the `boundTranscludeFn`
9362 // so that they are available inside the `controllersBoundTransclude` function

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected