duck-booking-tool-front/app/app.module.ts

39 lines
1.1 KiB
TypeScript
Raw Normal View History

import { NgModule } from "@angular/core";
import { BrowserModule } from "@angular/platform-browser";
import { FormsModule } from "@angular/forms";
import { HttpModule } from "@angular/http";
import { AppRoutingModule } from "./app-routing.module";
import { InMemoryWebApiModule } from "angular-in-memory-web-api";
2016-10-28 03:40:09 +00:00
import { InMemoryDuckService } from "./in-memory-data.service";
import { AppComponent } from "./app.component";
import { DuckDetailComponent } from "./duck-detail.component";
import { DashboardComponent } from "./dashboard.component";
import { DucksComponent } from "./ducks.component";
import { DuckService } from "./duck.service";
2016-10-28 03:40:09 +00:00
import { UserService } from "./user.service";
@NgModule({
imports: [
BrowserModule,
HttpModule,
2016-10-28 03:40:09 +00:00
InMemoryWebApiModule.forRoot(InMemoryDuckService),
AppRoutingModule
],
declarations: [
AppComponent,
DashboardComponent,
DuckDetailComponent,
DucksComponent
],
2016-10-28 03:40:09 +00:00
providers: [
DuckService,
UserService
],
bootstrap: [ AppComponent ]
})
export class AppModule {}