duck-booking-tool-front/app/app.module.ts
Gergely Polonkai 7c36ce1282 Move to the in-memory web API
This also makes it possible to save data.

Signed-off-by: Gergely Polonkai <gergely@polonkai.eu>
2016-09-09 14:42:24 +02:00

36 lines
1.0 KiB
TypeScript

import { NgModule } from "@angular/core";
import { BrowserModule } from "@angular/platform-browser";
import { FormsModule } from "@angular/forms";
import { HttpModule } from "@angular/http";
import { InMemoryWebApiModule } from "angular2-in-memory-web-api";
import { InMemoryDataService } from "./in-memory-data.service";
import { routing } from "./app.routing";
import { AppComponent } from "./app.component";
import { DucksComponent } from "./ducks.component";
import { DuckDetailComponent } from "./duck-detail.component";
import { DashboardComponent } from "./dashboard.component";
import { DuckService } from "./duck.service";
@NgModule({
imports: [
BrowserModule,
FormsModule,
HttpModule,
InMemoryWebApiModule.forRoot(InMemoryDataService),
routing
],
declarations: [
AppComponent,
DucksComponent,
DuckDetailComponent,
DashboardComponent
],
providers: [ DuckService ],
bootstrap: [ AppComponent ]
})
export class AppModule {}