Skip to content

Ngx meta.ngxmetametadefinition.withcontent

Home > @davidlj95/ngx-meta > NgxMetaMetaDefinition > withContent

NgxMetaMetaDefinition.withContent property

Warning: This API is now obsolete.

Use NgxMetaElementsService APIs instead. See custom metadata guide for more info

Creates an Angular MetaDefinition to create or update the element in the page.

With the given content as value of the <meta> element.

Signature:

readonly withContent: (content: string) => MetaDefinition;

Example

For instance, (content) => ({name: 'description', content}) to create a <meta name='description' content='{content}'> element. Where content will come from NgxMetaMetaService.set() second argument value.