---
lang: en
title: 'API docs: context.config.view'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.context.config.view.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [config](./context.config.md) &gt; [view](./context.config.view.md)

## config.view variable

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

<b>Signature:</b>

```typescript
view: (configPath?: string | undefined, metadata?: InjectionMetadata | undefined) => (target: Object, member: string, methodDescriptorOrParameterIndex?: number | TypedPropertyDescriptor<any> | undefined) => void
```

