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: (configPath?: string | undefined, metadata?: InjectionMetadata | undefined) => (target: Object, member: string, methodDescriptorOrParameterIndex?: number | TypedPropertyDescriptor<any> | undefined) => void