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

Function boundTranscludeFn

lib/test/angular/1.5.0/angular.js:8237–8249  ·  view source on GitHub ↗
(transcludedScope, cloneFn, controllers, futureParentElement, containingScope)

Source from the content-addressed store, hash-verified

8235 function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) {
8236
8237 var boundTranscludeFn = function(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) {
8238
8239 if (!transcludedScope) {
8240 transcludedScope = scope.$new(false, containingScope);
8241 transcludedScope.$$transcluded = true;
8242 }
8243
8244 return transcludeFn(transcludedScope, cloneFn, {
8245 parentBoundTranscludeFn: previousBoundTranscludeFn,
8246 transcludeControllers: controllers,
8247 futureParentElement: futureParentElement
8248 });
8249 };
8250
8251 // We need to attach the transclusion slots onto the `boundTranscludeFn`
8252 // so that they are available inside the `controllersBoundTransclude` function

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected