import { BrowserModule } from '@angular/platform-browser';
import { HttpClientModule } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
import { MDBBootstrapModule } from 'angular-bootstrap-md';
import {MatExpansionModule} from '@angular/material/expansion';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { LandingPageComponent } from './landing-page/landing-page.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import {
MatCardModule, MatToolbarModule, MatButtonModule, MatIconModule, MatSelectModule, MatMenuModule
, MatDividerModule, MatInputModule, MatProgressBarModule, MatSidenavModule, MatListModule
} from '@angular/material';
import { HomeComponent } from './home/home.component';
import { LoadPipe } from './home/load.pipe';
import { GraphQLModule } from './graphql.module';
import { InsertComponent } from './form/insert.component';
import { StudentService } from './students.service';
import { FetchComponent } from './fetch/fetch.component';
const material = [MatCardModule, MatToolbarModule, MatButtonModule, MatIconModule, MatSelectModule, MatMenuModule
, MatDividerModule, MatInputModule, MatProgressBarModule, MatSidenavModule, MatListModule];
@NgModule({
declarations: [
AppComponent,
LandingPageComponent,
HomeComponent,
InsertComponent,
FetchComponent,
LoadPipe
],
imports: [
BrowserModule,
ReactiveFormsModule,
HttpClientModule,
AppRoutingModule,
...material,
BrowserAnimationsModule,
GraphQLModule,
FormsModule,
MDBBootstrapModule.forRoot(),
MDBBootstrapModule,
MatExpansionModule
],
providers: [ StudentService],
bootstrap: [AppComponent]
})
export class AppModule {
constructor() {}
}