Page Contents

Home > @loopback/context > config > view

config.view variable

@inject.view decorator to inject a config context view to allow dynamic changes in configuration

Signature:

view: (propertyPath?: string | ConfigInjectionMetadata | undefined, metadata?: ConfigInjectionMetadata | undefined) => (target: Object, member: string | undefined, methodDescriptorOrParameterIndex?: number | TypedPropertyDescriptor<any> | undefined) => void