Meta
class
npm Package | @angular/platform-browser |
---|---|
Module | import { Meta } from '@angular/platform-browser'; |
Source | platform-browser/src/browser/meta.ts |
Overview
class Meta { constructor(_doc: any) addTag(tag: MetaDefinition, forceCreation: boolean = false): HTMLMetaElement | null addTags(tags: MetaDefinition[], forceCreation: boolean = false): HTMLMetaElement[] getTag(attrSelector: string): HTMLMetaElement | null getTags(attrSelector: string): HTMLMetaElement[] updateTag(tag: MetaDefinition, selector?: string): HTMLMetaElement | null removeTag(attrSelector: string): void removeTagElement(meta: HTMLMetaElement): void }
Description
A service that can be used to get and add meta tags.
Constructor
constructor(_doc: any)
Members
addTag(tag: MetaDefinition, forceCreation: boolean = false): HTMLMetaElement | null
addTags(tags: MetaDefinition[], forceCreation: boolean = false): HTMLMetaElement[]
getTag(attrSelector: string): HTMLMetaElement | null
getTags(attrSelector: string): HTMLMetaElement[]
updateTag(tag: MetaDefinition, selector?: string): HTMLMetaElement | null
removeTag(attrSelector: string): void
removeTagElement(meta: HTMLMetaElement): void
Annotations
@Injectable()
© 2010–2018 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v5.angular.io/api/platform-browser/Meta