Skip to content

Instantly share code, notes, and snippets.

@BetterProgramming
Created August 26, 2019 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BetterProgramming/c816b2fba69db15654bc0ea23811e3af to your computer and use it in GitHub Desktop.
Save BetterProgramming/c816b2fba69db15654bc0ea23811e3af to your computer and use it in GitHub Desktop.
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import {
MatButtonModule,
MatCheckboxModule,
MatInputModule,
MatMenuModule,
MatSidenavModule,
MatToolbarModule,
MatTableModule,
MatDialogModule,
MAT_DIALOG_DEFAULT_OPTIONS,
MatDatepickerModule,
MatSelectModule,
MatCardModule,
MatFormFieldModule
} from '@angular/material';
import { CustomFormsModule } from 'ng2-validation'
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { FormsModule } from '@angular/forms';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { StoreModule } from '@ngrx/store';
import { reducers } from './reducers';
import { TopBarComponent } from './top-bar/top-bar.component';
import { HomePageComponent } from './home-page/home-page.component';
import { ContactFormPageComponent } from './contact-form-page/contact-form-page.component';
import { HttpClientModule } from '@angular/common/http';
import { ContactFormComponent } from './contact-form/contact-form.component';
import { ContactDialogComponent } from './contact-dialog/contact-dialog.component';
import { ContactService } from './contact.service';
import { SearchContactsPipe } from './search-contacts.pipe';
@NgModule({
declarations: [
AppComponent,
TopBarComponent,
HomePageComponent,
ContactFormPageComponent,
ContactFormComponent,
ContactDialogComponent,
SearchContactsPipe
],
imports: [
BrowserModule,
AppRoutingModule,
FormsModule,
MatButtonModule,
StoreModule.forRoot(reducers),
BrowserAnimationsModule,
MatButtonModule,
MatCheckboxModule,
MatFormFieldModule,
MatInputModule,
MatMenuModule,
MatSidenavModule,
MatToolbarModule,
MatTableModule,
HttpClientModule,
MatDialogModule,
MatDatepickerModule,
MatSelectModule,
MatCardModule,
CustomFormsModule
],
providers: [
ContactService,
SearchContactsPipe
],
bootstrap: [AppComponent],
entryComponents: [
ContactDialogComponent
]
})
export class AppModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment