Skip to content

Ngx meta.metadataresolveroptions.jsonpath

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

MetadataResolverOptions.jsonPath property

JSON path to use to access a metadata values JSON object when resolving a metadata value.

Signature:

readonly jsonPath: readonly string[];

Example

The following JSON path

const jsonPath = `['foo', 'bar']`
When resolving the following sample metadata values JSON

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