Skip to content

Ngx meta.metadataresolveroptions.global

Home > @davidlj95/ngx-meta > MetadataResolverOptions > global

MetadataResolverOptions.global property

Global key in a metadata values object to use when resolving a metadata value.

Signature:

readonly global?: string;

Example

The following global

const global = 'foo'
When resolving the following sample metadata values JSON

const metadataValues = {
  foo: 'bar'
}
Would access the foo global key and resolve bar as metadata value

Defaults to undefined (no global to be used for the metadata manager)