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

Function setMetaElementAttributes

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

Source from the content-addressed store, hash-verified

182}
183
184function setMetaElementAttributes(tag: MetaDefinition, el: HTMLMetaElement) {
185 Object.keys(tag).forEach((prop: string) => el.setAttribute(getMetaKeyMap(prop), tag[prop]));
186}
187
188function validateMetaDefinition(tag: MetaDefinition): void {
189 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