Ngx meta.ngxmetametadefinition
Home > @davidlj95/ngx-meta > NgxMetaMetaDefinition
NgxMetaMetaDefinition interface
Models a <meta>
element which NgxMetaMetaService can upsert with a given value (or remove if value is not provided or null
)
Can be created with makeKeyValMetaDefinition() and makeComposedKeyValMetaDefinition() factory functions.
Signature:
export interface NgxMetaMetaDefinition
Remarks
Inspired by Angular's MetaDefinition.
Difference is we have the NgxMetaMetaDefinition.attrSelector to be able to remove the <meta>
element.
And NgxMetaMetaDefinition.withContent to create an Angular's MetaDefinition that creates or updates the <meta>
element in the page.
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
attrSelector | readonly |
string | Attribute selector that identifies the <meta> in order to remove it when needed. |
withContent | readonly |
(content: string) => MetaDefinition | Creates an Angular's MetaDefinition with the given content |