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

Function setMetaElementAttributes

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

Source from the content-addressed store, hash-verified

181}
182
183function setMetaElementAttributes(tag: MetaDefinition, el: HTMLMetaElement) {
184 Object.keys(tag).forEach((prop: string) => el.setAttribute(getMetaKeyMap(prop), tag[prop]));
185}
186
187function validateMetaDefinition(tag: MetaDefinition): void {
188 for (const prop of Object.keys(tag)) {

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