MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / createBoundTranscludeFn

Function createBoundTranscludeFn

code/songhop/www/lib/angular/angular.js:7071–7088  ·  view source on GitHub ↗
(scope, transcludeFn, previousBoundTranscludeFn, elementTransclusion)

Source from the content-addressed store, hash-verified

7069 }
7070
7071 function createBoundTranscludeFn(scope, transcludeFn, previousBoundTranscludeFn, elementTransclusion) {
7072
7073 var boundTranscludeFn = function(transcludedScope, cloneFn, controllers, futureParentElement, containingScope) {
7074
7075 if (!transcludedScope) {
7076 transcludedScope = scope.$new(false, containingScope);
7077 transcludedScope.$$transcluded = true;
7078 }
7079
7080 return transcludeFn(transcludedScope, cloneFn, {
7081 parentBoundTranscludeFn: previousBoundTranscludeFn,
7082 transcludeControllers: controllers,
7083 futureParentElement: futureParentElement
7084 });
7085 };
7086
7087 return boundTranscludeFn;
7088 }
7089
7090 /**
7091 * 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