W3cubDocs

/Angular

Meta

class

npm Package @angular/platform-browser
Module import { Meta } from '@angular/platform-browser';
Source platform-browser/src/browser/meta.ts

Overview

class Meta {
  addTag(tag: MetaDefinition, forceCreation: boolean): HTMLMetaElement|null
  addTags(tags: MetaDefinition[], forceCreation: boolean): 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): HTMLMetaElement|null

addTags(tags: MetaDefinition[], forceCreation: boolean): 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–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/platform-browser/Meta