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

Function setMetaElementAttributes

packages/platform-browser/src/browser/meta.ts:179–181  ·  view source on GitHub ↗
(tag: MetaDefinition, el: HTMLMetaElement)

Source from the content-addressed store, hash-verified

177}
178
179function setMetaElementAttributes(tag: MetaDefinition, el: HTMLMetaElement) {
180 Object.keys(tag).forEach((prop: string) => el.setAttribute(getMetaKeyMap(prop), tag[prop]));
181}
182
183function parseSelector(tag: MetaDefinition): string {
184 const attr: string = tag.name ? 'name' : 'property';

Callers 2

updateTagMethod · 0.85
_getOrCreateElementMethod · 0.85

Calls 4

getMetaKeyMapFunction · 0.85
keysMethod · 0.65
setAttributeMethod · 0.65
forEachMethod · 0.45

Tested by

no test coverage detected