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

Function isPlainTemplate

packages/compiler/src/template/pipeline/src/ingest.ts:1417–1419  ·  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

1415 * | `<ng-template *ngIf>` (structural) | null |
1416 */
1417function isPlainTemplate(tmpl: t.Template) {
1418 return splitNsName(tmpl.tagName ?? '')[1] === NG_TEMPLATE_TAG_NAME;
1419}
1420
1421/**
1422 * 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