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

Function hasI18nAttrs

packages/compiler/src/render3/view/i18n/util.ts:24–26  ·  view source on GitHub ↗
(node: html.Element | html.Component)

Source from the content-addressed store, hash-verified

22}
23
24export function hasI18nAttrs(node: html.Element | html.Component): boolean {
25 return node.attrs.some((attr: html.Attribute) => isI18nAttribute(attr.name));
26}
27
28export function icuFromI18nMessage(message: i18n.Message) {
29 return message.nodes[0] as i18n.IcuPlaceholder;

Callers 1

_visitElementLikeMethod · 0.90

Calls 2

isI18nAttributeFunction · 0.85
someMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…