websetup/ts/websetup.classes.tag.metatag.ts

12 lines
323 B
TypeScript
Raw Normal View History

2020-11-04 18:09:07 +00:00
import { Tag } from './websetup.classes.tag';
2020-11-04 18:01:04 +00:00
export class MetaTag extends Tag {
constructor(metaNameArg: string, contentArg: string) {
super();
const metaElement = document.createElement('meta');
metaElement.name = metaNameArg;
metaElement.content = contentArg;
this.elementRef = metaElement;
}
2020-11-04 18:09:07 +00:00
}