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

41 lines
1.2 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";
2016-10-28 05:44:47 +00:00
import { HeaderComponent } from "./header.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,
2016-10-28 05:44:47 +00:00
DucksComponent,
HeaderComponent
],
2016-10-28 03:40:09 +00:00
providers: [
DuckService,
UserService
],
bootstrap: [ AppComponent ]
})
export class AppModule {}