Skip to content

Instantly share code, notes, and snippets.

@vorpal56
Created September 29, 2020 22:44
Show Gist options
  • Save vorpal56/6a92958a03bade9a77cb96a636c04f9e to your computer and use it in GitHub Desktop.
Save vorpal56/6a92958a03bade9a77cb96a636c04f9e to your computer and use it in GitHub Desktop.
Contact form without a server using Angular - app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { ContactComponent } from './contact/contact.component';
import { ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule } from "@angular/common/http";
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { MatInputModule } from "@angular/material/input";
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
@NgModule({
declarations: [
AppComponent,
ContactComponent
],
imports: [
BrowserModule,
ReactiveFormsModule,
HttpClientModule,
NoopAnimationsModule,
MatInputModule,
BrowserAnimationsModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment