2017-02-22 18:13:21 +00:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { BrowserModule } from '@angular/platform-browser';
|
2017-10-27 15:48:50 -07:00
|
|
|
import { HttpClientModule } from '@angular/common/http';
|
2017-02-22 18:13:21 +00:00
|
|
|
|
|
|
|
import { AppComponent } from './app.component';
|
|
|
|
import { AppRoutingModule } from './app-routing.module';
|
|
|
|
|
2017-10-27 15:48:50 -07:00
|
|
|
import { AboutComponent } from './about/about.component';
|
|
|
|
import { BannerComponent } from './banner/banner.component';
|
|
|
|
import { HeroService } from './model/hero.service';
|
2017-08-22 21:31:15 +02:00
|
|
|
import { UserService } from './model/user.service';
|
2017-10-27 15:48:50 -07:00
|
|
|
import { TwainComponent } from './twain/twain.component';
|
|
|
|
import { TwainService } from './twain/twain.service';
|
|
|
|
import { WelcomeComponent } from './welcome/welcome.component';
|
2017-02-22 18:13:21 +00:00
|
|
|
|
|
|
|
import { DashboardModule } from './dashboard/dashboard.module';
|
|
|
|
import { SharedModule } from './shared/shared.module';
|
|
|
|
|
2017-10-27 15:48:50 -07:00
|
|
|
import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api';
|
|
|
|
import { InMemoryDataService } from './in-memory-data.service';
|
|
|
|
|
2017-02-22 18:13:21 +00:00
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
BrowserModule,
|
|
|
|
DashboardModule,
|
|
|
|
AppRoutingModule,
|
2017-10-27 15:48:50 -07:00
|
|
|
SharedModule,
|
|
|
|
HttpClientModule,
|
|
|
|
|
|
|
|
// The HttpClientInMemoryWebApiModule module intercepts HTTP requests
|
|
|
|
// and returns simulated server responses.
|
|
|
|
// Remove it when a real server is ready to receive requests.
|
|
|
|
HttpClientInMemoryWebApiModule.forRoot(
|
|
|
|
InMemoryDataService, { dataEncapsulation: false }
|
|
|
|
)
|
|
|
|
],
|
|
|
|
providers: [
|
|
|
|
HeroService,
|
|
|
|
TwainService,
|
|
|
|
UserService
|
2017-02-22 18:13:21 +00:00
|
|
|
],
|
2017-10-27 15:48:50 -07:00
|
|
|
declarations: [
|
|
|
|
AppComponent,
|
|
|
|
AboutComponent,
|
|
|
|
BannerComponent,
|
|
|
|
TwainComponent,
|
|
|
|
WelcomeComponent ],
|
|
|
|
bootstrap: [ AppComponent ]
|
2017-02-22 18:13:21 +00:00
|
|
|
})
|
|
|
|
export class AppModule { }
|