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

Function isPlainTemplate

packages/compiler/src/template/pipeline/src/ingest.ts:1301–1303  ·  view source on GitHub ↗

* Checks whether the given template is a plain ng-template (as opposed to another kind of template * such as a structural directive template or control flow template). This is checked based on the * tagName. We can expect that only plain ng-templates will come through with a tagName of * 'ng-temp

(tmpl: t.Template)

Source from the content-addressed store, hash-verified

1299 * | `<ng-template *ngIf>` (structural) | null |
1300 */
1301function isPlainTemplate(tmpl: t.Template) {
1302 return splitNsName(tmpl.tagName ?? '')[1] === NG_TEMPLATE_TAG_NAME;
1303}
1304
1305/**
1306 * Ensures that the i18nMeta, if provided, is an i18n.Message.

Callers 1

ingestTemplateFunction · 0.85

Calls 1

splitNsNameFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…