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";
|
|
|
|
|
|
|
|
import { InMemoryWebApiModule } from "angular2-in-memory-web-api";
|
|
|
|
import { InMemoryDataService } from "./in-memory-data.service";
|
2016-09-06 11:44:13 +00:00
|
|
|
|
2016-09-06 13:35:20 +00:00
|
|
|
import { routing } from "./app.routing";
|
|
|
|
|
2016-09-06 11:44:13 +00:00
|
|
|
import { AppComponent } from "./app.component";
|
2016-09-06 13:35:20 +00:00
|
|
|
import { DucksComponent } from "./ducks.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";
|
|
|
|
|
|
|
|
import { DuckService } from "./duck.service";
|
2016-09-06 11:44:13 +00:00
|
|
|
|
|
|
|
@NgModule({
|
2016-09-06 11:53:32 +00:00
|
|
|
imports: [
|
|
|
|
BrowserModule,
|
2016-09-06 13:35:20 +00:00
|
|
|
FormsModule,
|
2016-09-06 13:54:03 +00:00
|
|
|
HttpModule,
|
|
|
|
InMemoryWebApiModule.forRoot(InMemoryDataService),
|
2016-09-06 13:35:20 +00:00
|
|
|
routing
|
2016-09-06 11:53:32 +00:00
|
|
|
],
|
2016-09-06 12:21:25 +00:00
|
|
|
declarations: [
|
|
|
|
AppComponent,
|
2016-09-06 13:35:20 +00:00
|
|
|
DucksComponent,
|
|
|
|
DuckDetailComponent,
|
|
|
|
DashboardComponent
|
2016-09-06 12:21:25 +00:00
|
|
|
],
|
2016-09-06 13:35:20 +00:00
|
|
|
providers: [ DuckService ],
|
2016-09-06 11:44:13 +00:00
|
|
|
bootstrap: [ AppComponent ]
|
|
|
|
})
|
|
|
|
export class AppModule {}
|