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

Function boundTranscludeFn

test/angular/1.5/angular.js:8820–8832  ·  view source on GitHub ↗
(transcludedScope, cloneFn, controllers, futureParentElement, containingScope)

Source from the content-addressed store, hash-verified

8818
8819 function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) {
8820 function boundTranscludeFn(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) {
8821
8822 if (!transcludedScope) {
8823 transcludedScope = scope.$new(false, containingScope);
8824 transcludedScope.$$transcluded = true;
8825 }
8826
8827 return transcludeFn(transcludedScope, cloneFn, {
8828 parentBoundTranscludeFn: previousBoundTranscludeFn,
8829 transcludeControllers: controllers,
8830 futureParentElement: futureParentElement
8831 });
8832 }
8833
8834 // We need to attach the transclusion slots onto the `boundTranscludeFn`
8835 // so that they are available inside the `controllersBoundTransclude` function

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected