Ngx meta.ngxmetametaservice.set
Home > @davidlj95/ngx-meta > NgxMetaMetaService > set
NgxMetaMetaService.set() method
Warning: This API is now obsolete.
Use NgxMetaElementsService APIs instead. See migration guide for more info
Creates, updates or removes a specific <meta>
element.
The element is modeled using a NgxMetaMetaDefinition object.
The element is created with the provided content. If no content is given, element is removed.
Signature:
set(definition: NgxMetaMetaDefinition, content: NgxMetaMetaContent): void;
Parameters
Parameter | Type | Description |
---|---|---|
definition | NgxMetaMetaDefinition | <meta> element to create, update or remove |
content | NgxMetaMetaContent | Content value to create or update the <meta> element. Use null or undefined to remove the element from the page. |
Returns:
void