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

Function createBoundTranscludeFn

test/angular/1.2/angular.js:6165–6184  ·  view source on GitHub ↗
(scope, transcludeFn, previousBoundTranscludeFn)

Source from the content-addressed store, hash-verified

6163 }
6164
6165 function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn) {
6166
6167 var boundTranscludeFn = function(transcludedScope, cloneFn, controllers) {
6168 var scopeCreated = false;
6169
6170 if (!transcludedScope) {
6171 transcludedScope = scope.$new();
6172 transcludedScope.$$transcluded = true;
6173 scopeCreated = true;
6174 }
6175
6176 var clone = transcludeFn(transcludedScope, cloneFn, controllers, previousBoundTranscludeFn);
6177 if (scopeCreated) {
6178 clone.on('$destroy', function() { transcludedScope.$destroy(); });
6179 }
6180 return clone;
6181 };
6182
6183 return boundTranscludeFn;
6184 }
6185
6186 /**
6187 * Looks for directives on the given node and adds them to the directive collection which is

Callers 2

compositeLinkFnFunction · 0.70
compileTemplateUrlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected