Last active
May 3, 2018 18:10
-
-
Save johnrsimoneau/63401dca21d4bb8d65b8223f6776ae27 to your computer and use it in GitHub Desktop.
Importing Angular's forms into the app.module.ts file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { BrowserModule } from '@angular/platform-browser'; | |
import { NgModule } from '@angular/core'; | |
import { FormsModule, ReactiveFormsModule } from '@angular/forms'; | |
import { AppComponent } from './app.component'; | |
import { ReactiveFormComponent } from './reactive-form/reactive-form.component'; | |
@NgModule({ | |
declarations: [ | |
AppComponent, | |
ReactiveFormComponent | |
], | |
imports: [ | |
BrowserModule, | |
FormsModule, | |
ReactiveFormsModule | |
], | |
providers: [], | |
bootstrap: [AppComponent] | |
}) | |
export class AppModule { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment