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

Method apply

packages/compiler/src/render3/view/t2_binder.ts:325–329  ·  view source on GitHub ↗

* Process a template (either as a `Template` sub-template with variables, or a plain array of * template `Node`s) and construct its `Scope`.

(template: ScopedNode | Node[])

Source from the content-addressed store, hash-verified

323 * template `Node`s) and construct its `Scope`.
324 */
325 static apply(template: ScopedNode | Node[]): Scope {
326 const scope = Scope.newRootScope();
327 scope.ingest(template);
328 return scope;
329 }
330
331 /**
332 * Internal method to process the scoped node and populate the `Scope`.

Callers

nothing calls this directly

Calls 2

newRootScopeMethod · 0.80
ingestMethod · 0.45

Tested by

no test coverage detected