MCPcopy Index your code
hub / github.com/angular/angular / embeddedTView

Method embeddedTView

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

isApplyingToNodeMethod · 0.95
addMatchMethod · 0.95

Tested by

no test coverage detected