2016-09-06 11:44:13 +00:00
|
|
|
import { NgModule } from "@angular/core";
|
|
|
|
import { BrowserModule } from "@angular/platform-browser";
|
2016-09-06 11:53:32 +00:00
|
|
|
import { FormsModule } from "@angular/forms";
|
2016-09-06 13:54:03 +00:00
|
|
|
import { HttpModule } from "@angular/http";
|
|
|
|
|
2016-10-27 15:52:55 +00:00
|
|
|
import { AppRoutingModule } from "./app-routing.module";
|
2016-09-06 11:44:13 +00:00
|
|
|
|
2016-10-27 15:52:55 +00:00
|
|
|
import { InMemoryWebApiModule } from "angular-in-memory-web-api";
|
2016-10-28 03:40:09 +00:00
|
|
|
import { InMemoryDuckService } from "./in-memory-data.service";
|
2016-09-06 13:35:20 +00:00
|
|
|
|
2016-09-06 11:44:13 +00:00
|
|
|
import { AppComponent } from "./app.component";
|
2016-09-06 12:21:25 +00:00
|
|
|
import { DuckDetailComponent } from "./duck-detail.component";
|
2016-09-06 13:35:20 +00:00
|
|
|
import { DashboardComponent } from "./dashboard.component";
|
2016-10-27 15:52:55 +00:00
|
|
|
import { DucksComponent } from "./ducks.component";
|
2016-10-28 05:44:47 +00:00
|
|
|
import { HeaderComponent } from "./header.component";
|
2016-09-06 13:35:20 +00:00
|
|
|
|
|
|
|
import { DuckService } from "./duck.service";
|
2016-10-28 03:40:09 +00:00
|
|
|
import { UserService } from "./user.service";
|
2016-09-06 11:44:13 +00:00
|
|
|
|
|
|
|
@NgModule({
|
2016-09-06 11:53:32 +00:00
|
|
|
imports: [
|
|
|
|
BrowserModule,
|
2016-09-06 13:54:03 +00:00
|
|
|
HttpModule,
|
2016-10-28 03:40:09 +00:00
|
|
|
InMemoryWebApiModule.forRoot(InMemoryDuckService),
|
2016-10-27 15:52:55 +00:00
|
|
|
AppRoutingModule
|
2016-09-06 11:53:32 +00:00
|
|
|
],
|
2016-09-06 12:21:25 +00:00
|
|
|
declarations: [
|
|
|
|
AppComponent,
|
2016-10-27 15:52:55 +00:00
|
|
|
DashboardComponent,
|
2016-09-06 13:35:20 +00:00
|
|
|
DuckDetailComponent,
|
2016-10-28 05:44:47 +00:00
|
|
|
DucksComponent,
|
|
|
|
HeaderComponent
|
2016-09-06 12:21:25 +00:00
|
|
|
],
|
2016-10-28 03:40:09 +00:00
|
|
|
providers: [
|
|
|
|
DuckService,
|
|
|
|
UserService
|
|
|
|
],
|
2016-09-06 11:44:13 +00:00
|
|
|
bootstrap: [ AppComponent ]
|
|
|
|
})
|
|
|
|
export class AppModule {}
|