---
lang: en
title: 'API docs: express.middlewarecreationoptions.injectconfiguration'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/express
permalink: /doc/en/lb4/apidocs.express.middlewarecreationoptions.injectconfiguration.html
---

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

[Home](./index.md) &gt; [@loopback/express](./express.md) &gt; [MiddlewareCreationOptions](./express.middlewarecreationoptions.md) &gt; [injectConfiguration](./express.middlewarecreationoptions.injectconfiguration.md)

## MiddlewareCreationOptions.injectConfiguration property

A flag to control if configuration for the middleware can be injected lazily.

- `true` (default): creates a provider class with `@config` - `false`<!-- -->: No configuration injection is supported - 'watch': creates a provider class with `@config.view`

<b>Signature:</b>

```typescript
injectConfiguration?: boolean | 'watch';
```

