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

Function isNameOnlyAttributeMarker

packages/core/src/render3/util/attrs_utils.ts:89–95  ·  view source on GitHub ↗
(marker: string | AttributeMarker | CssSelector)

Source from the content-addressed store, hash-verified

87 * @returns true if the marker is a "name-only" marker (e.g. `Bindings`, `Template` or `I18n`).
88 */
89export function isNameOnlyAttributeMarker(marker: string | AttributeMarker | CssSelector) {
90 return (
91 marker === AttributeMarker.Bindings ||
92 marker === AttributeMarker.Template ||
93 marker === AttributeMarker.I18n
94 );
95}
96
97export function isAnimationProp(name: string): boolean {
98 // Perf note: accessing charCodeAt to check for the first character of a string is faster as

Callers 2

injectAttributeImplFunction · 0.90
getNameOnlyMarkerIndexFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected