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: ReadonlyArray<string>;
Example
The following JSON path
const jsonPath = `['foo', 'bar']`
const metadataValues = {
foo: {
bar: 'fooBar'
}
}
bar
key inside the foo
object and resolve fooBar
as metadata value