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

Function boundTranscludeFn

test/angular/1.7/angular.js:9871–9883  ·  view source on GitHub ↗
(transcludedScope, cloneFn, controllers, futureParentElement, containingScope)

Source from the content-addressed store, hash-verified

9869
9870 function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) {
9871 function boundTranscludeFn(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) {
9872
9873 if (!transcludedScope) {
9874 transcludedScope = scope.$new(false, containingScope);
9875 transcludedScope.$$transcluded = true;
9876 }
9877
9878 return transcludeFn(transcludedScope, cloneFn, {
9879 parentBoundTranscludeFn: previousBoundTranscludeFn,
9880 transcludeControllers: controllers,
9881 futureParentElement: futureParentElement
9882 });
9883 }
9884
9885 // We need to attach the transclusion slots onto the `boundTranscludeFn`
9886 // so that they are available inside the `controllersBoundTransclude` function

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected