ReactiveFormsModule

The ng module for reactive forms.

响应式表单的 NgModule。

class ReactiveFormsModule { static withConfig(opts: {...}): ModuleWithProviders<ReactiveFormsModule> }

静态方法

static withConfig(opts: { warnOnNgModelWithFormControl: 'never' | 'once' | 'always'; }): ModuleWithProviders<ReactiveFormsModule>

参数

opts

Type: { warnOnNgModelWithFormControl: 'never' | 'once' | 'always'; }.

返回值

ModuleWithProviders<ReactiveFormsModule>

注解

@NgModule({ declarations: [REACTIVE_DRIVEN_DIRECTIVES], providers: [FormBuilder, RadioControlRegistry], exports: [InternalFormsSharedModule, REACTIVE_DRIVEN_DIRECTIVES] })