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

Method embeddedTView

packages/core/src/render3/queries/query.ts:216–225  ·  view source on GitHub ↗
(tNode: TNode, childQueryIndex: number)

Source from the content-addressed store, hash-verified

214 }
215
216 embeddedTView(tNode: TNode, childQueryIndex: number): TQuery | null {
217 if (this.isApplyingToNode(tNode)) {
218 this.crossesNgTemplate = true;
219 // A marker indicating a `<ng-template>` element (a placeholder for query results from
220 // embedded views created based on this `<ng-template>`).
221 this.addMatch(-tNode.index, childQueryIndex);
222 return new TQuery_(this.metadata);
223 }
224 return null;
225 }
226
227 private isApplyingToNode(tNode: TNode): boolean {
228 if (

Callers

nothing calls this directly

Calls 2

isApplyingToNodeMethod · 0.95
addMatchMethod · 0.95

Tested by

no test coverage detected