MCPcopy Create free account
hub / github.com/angular/angular / visitTemplate

Method visitTemplate

packages/compiler/src/render3/view/t2_binder.ts:371–380  ·  view source on GitHub ↗
(template: Template)

Source from the content-addressed store, hash-verified

369 }
370
371 visitTemplate(template: Template) {
372 template.directives.forEach((node) => node.visit(this));
373
374 // References on a <ng-template> are defined in the outer scope, so capture them before
375 // processing the template's child scope.
376 template.references.forEach((node) => this.visitReference(node));
377
378 // Next, create an inner scope and process the template within it.
379 this.ingestScopedNode(template);
380 }
381
382 visitVariable(variable: Variable) {
383 // Declare the variable if it's not already.

Callers

nothing calls this directly

Calls 4

visitReferenceMethod · 0.95
ingestScopedNodeMethod · 0.95
visitMethod · 0.65
forEachMethod · 0.45

Tested by

no test coverage detected