W3cubDocs

/Angular 4 TypeScript

Meta

Experimental Class

Class Overview

class Meta {
  constructor(_doc: any)
  
  
  addTag(tag: MetaDefinition, forceCreation?: boolean) : HTMLMetaElement
  addTags(tags: MetaDefinition[], forceCreation?: boolean) : HTMLMetaElement[]
  getTag(attrSelector: string) : HTMLMetaElement
  getTags(attrSelector: string) : HTMLMetaElement[]
  updateTag(tag: MetaDefinition, selector?: string) : HTMLMetaElement
  removeTag(attrSelector: string) : void
  removeTagElement(meta: HTMLMetaElement) : void
}

Class Description

A service that can be used to get and add meta tags.

Annotations

@Injectable()

Constructor

constructor(_doc: any)

Class Details

addTag(tag: MetaDefinition, forceCreation?: boolean) : HTMLMetaElement
addTags(tags: MetaDefinition[], forceCreation?: boolean) : HTMLMetaElement[]
getTag(attrSelector: string) : HTMLMetaElement
getTags(attrSelector: string) : HTMLMetaElement[]
updateTag(tag: MetaDefinition, selector?: string) : HTMLMetaElement
removeTag(attrSelector: string) : void
removeTagElement(meta: HTMLMetaElement) : void

exported from platform-browser/index, defined in platform-browser/src/browser/meta.ts

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/docs/ts/latest/api/platform-browser/index/Meta-class.html