MCPcopy
hub / github.com/angular/angular / _containsAttributes

Method _containsAttributes

packages/platform-browser/src/browser/meta.ts:200–204  ·  view source on GitHub ↗
(tag: MetaDefinition, elem: HTMLMetaElement)

Source from the content-addressed store, hash-verified

198 }
199
200 private _containsAttributes(tag: MetaDefinition, elem: HTMLMetaElement): boolean {
201 return Object.keys(tag).every(
202 (key: string) => elem.getAttribute(this._getMetaKeyMap(key)) === tag[key],
203 );
204 }
205
206 private _getMetaKeyMap(prop: string): string {
207 return META_KEYS_MAP[prop] || prop;

Callers 1

_getOrCreateElementMethod · 0.95

Calls 3

_getMetaKeyMapMethod · 0.95
keysMethod · 0.65
getAttributeMethod · 0.65

Tested by

no test coverage detected