import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { HttpClientModule } from '@angular/common/http'; import { HttpModule } from '@angular/http'; import { RouterModule, Routes, Router } from '@angular/router'; import { AppComponent } from './app.component'; import { DynamicFormComponent } from './form/dynamic-form.component'; import { DynamicFormFieldComponent } from './form/fields/dynamic-form-field.component'; import { ServerService } from './services/server.service'; import { dataModelBuilder } from './services/dataModelBuilder.service'; import { DynamicFormGroupComponent } from './form/dynamic-form-group/dynamic-form-group.component'; import { LoginComponent } from './login/login-page'; import {GoogleSignInComponent} from 'angular-google-signin'; import { AppRoutingModule } from './app-routing.module'; import { AuthGuard } from './guards/auth.guard'; import { PageNotFoundComponent } from './not-found.component'; import { TocComponent } from './form/tableOfContents/toc.component'; import { ProjectsModule } from './projects/project.module'; import { PaginationService } from './services/pagination.service'; @NgModule({ declarations: [ AppComponent, DynamicFormComponent, DynamicFormFieldComponent, DynamicFormGroupComponent, TocComponent, LoginComponent, GoogleSignInComponent, PageNotFoundComponent ], imports: [ BrowserModule, ReactiveFormsModule, FormsModule, HttpModule, HttpClientModule, ProjectsModule, AppRoutingModule ], providers: [ServerService, dataModelBuilder, AuthGuard, PaginationService], bootstrap: [AppComponent] }) export class AppModule { constructor() { } }