2016-06-23 09:47:54 -07:00
|
|
|
/**
|
|
|
|
|
* @license
|
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
|
*/
|
|
|
|
|
|
2016-08-23 21:36:34 -07:00
|
|
|
import {NgModule} from '@angular/core';
|
2016-07-11 13:23:38 -07:00
|
|
|
|
2016-08-12 15:32:47 -07:00
|
|
|
import {InternalFormsSharedModule, REACTIVE_DRIVEN_DIRECTIVES, TEMPLATE_DRIVEN_DIRECTIVES} from './directives';
|
2016-07-07 11:32:51 -07:00
|
|
|
import {RadioControlRegistry} from './directives/radio_control_value_accessor';
|
|
|
|
|
import {FormBuilder} from './form_builder';
|
2016-06-14 18:23:40 -07:00
|
|
|
|
|
|
|
|
|
2016-06-27 12:27:23 -07:00
|
|
|
/**
|
2016-07-18 03:50:31 -07:00
|
|
|
* The ng module for forms.
|
2016-08-17 07:44:39 -07:00
|
|
|
* @stable
|
2016-06-27 12:27:23 -07:00
|
|
|
*/
|
2016-07-18 03:50:31 -07:00
|
|
|
@NgModule({
|
|
|
|
|
declarations: TEMPLATE_DRIVEN_DIRECTIVES,
|
2016-08-23 21:36:34 -07:00
|
|
|
providers: [RadioControlRegistry],
|
2016-07-18 03:50:31 -07:00
|
|
|
exports: [InternalFormsSharedModule, TEMPLATE_DRIVEN_DIRECTIVES]
|
|
|
|
|
})
|
2016-07-07 11:32:51 -07:00
|
|
|
export class FormsModule {
|
2016-06-14 18:23:40 -07:00
|
|
|
}
|
|
|
|
|
|
2016-06-27 12:27:23 -07:00
|
|
|
/**
|
2016-07-18 03:50:31 -07:00
|
|
|
* The ng module for reactive forms.
|
2016-08-17 07:44:39 -07:00
|
|
|
* @stable
|
2016-06-27 12:27:23 -07:00
|
|
|
*/
|
2016-07-18 03:50:31 -07:00
|
|
|
@NgModule({
|
|
|
|
|
declarations: [REACTIVE_DRIVEN_DIRECTIVES],
|
2016-08-23 21:36:34 -07:00
|
|
|
providers: [FormBuilder, RadioControlRegistry],
|
2016-07-18 03:50:31 -07:00
|
|
|
exports: [InternalFormsSharedModule, REACTIVE_DRIVEN_DIRECTIVES]
|
|
|
|
|
})
|
2016-07-07 11:32:51 -07:00
|
|
|
export class ReactiveFormsModule {
|
2016-08-17 07:44:39 -07:00
|
|
|
}
|