# SiFormlyModule Type documentation

## TypeScript declaration

### [SiFormlyModule](<https://github.com/siemens/element/blob/main/projects/element-ng/formly-legacy/si-formly.module.ts#L38-L62>)

**Kind:** ng module

```
import { SiFormlyModule } from '@siemens/element-ng/formly-legacy';
```

Deprecated: This module is based on Angular Formly v6 and will be removed in a future release. Migrate to the standalone `SiFormlyComponent` from `@siemens/element-ng/formly` (Formly v7.1) instead.

```
ng_module SiFormlyModule
```

#### Constructor

##### constructor

[Source for constructor](<https://github.com/siemens/element/blob/main/projects/element-ng/formly-legacy/si-formly.module.ts#L53-L61>)

```
constructor(): SiFormlyModule
```

**Returns:** [SiFormlyModule](<index.html#t:SiFormlyModule>)

#### Methods

##### forRoot

[Source for forRoot](<https://github.com/siemens/element/blob/main/projects/element-ng/formly-legacy/si-formly.module.ts#L42-L51>)

**Modifiers:** static

```
forRoot(formlyConfig?: ConfigOption = {}): ModuleWithProviders<SiFormlyModule>
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [formlyConfig](<https://github.com/siemens/element/blob/main/projects/element-ng/formly-legacy/si-formly.module.ts#L42-L42>) (optional) | `ConfigOption` | `{}` |  |

**Returns:** [ModuleWithProviders](<https://angular.dev/api/core/ModuleWithProviders>)`<`[SiFormlyModule](<index.html#t:SiFormlyModule>)`>`
