Skip to content

Instantly share code, notes, and snippets.

@alemohamad
Last active April 17, 2019 10:50
Show Gist options
  • Save alemohamad/74215316c0836978564fbdee2f097514 to your computer and use it in GitHub Desktop.
Save alemohamad/74215316c0836978564fbdee2f097514 to your computer and use it in GitHub Desktop.
Angular 7 app module with forms module.
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { ContactComponent } from './contact/contact.component';
import { FormsModule } from '@angular/forms';
@NgModule({
declarations: [
AppComponent,
ContactComponent
],
imports: [
BrowserModule,
AppRoutingModule,
FormsModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment