Meta
class
A service that can be used to get and add meta tags.
class Meta { 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 }
Methods
addTag()
|
||||
---|---|---|---|---|
|
tag | Type: |
forceCreation | Type: Optional. Default is |
Returns
HTMLMetaElement | null
|
||||
---|---|---|---|---|
|
tags | Type: |
forceCreation | Type: Optional. Default is |
Returns
HTMLMetaElement[]
getTag()
|
||
---|---|---|
|
attrSelector | Type: |
Returns
HTMLMetaElement | null
|
||
---|---|---|
|
attrSelector | Type: |
Returns
HTMLMetaElement[]
updateTag()
|
||||
---|---|---|---|---|
|
tag | Type: |
selector | Type: Optional. Default is |
Returns
HTMLMetaElement | null
removeTag()
|
||
---|---|---|
|
attrSelector | Type: |
Returns
void
removeTagElement()
|
||
---|---|---|
|
meta | Type: |
Returns
void
© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v6.angular.io/api/platform-browser/Meta