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

Function boundTranscludeFn

lib/test/angular/1.6.7/angular.js:9276–9288  ·  view source on GitHub ↗
(transcludedScope, cloneFn, controllers, futureParentElement, containingScope)

Source from the content-addressed store, hash-verified

9274
9275 function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) {
9276 function boundTranscludeFn(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) {
9277
9278 if (!transcludedScope) {
9279 transcludedScope = scope.$new(false, containingScope);
9280 transcludedScope.$$transcluded = true;
9281 }
9282
9283 return transcludeFn(transcludedScope, cloneFn, {
9284 parentBoundTranscludeFn: previousBoundTranscludeFn,
9285 transcludeControllers: controllers,
9286 futureParentElement: futureParentElement
9287 });
9288 }
9289
9290 // We need to attach the transclusion slots onto the `boundTranscludeFn`
9291 // so that they are available inside the `controllersBoundTransclude` function

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected