This repository was archived by the owner on Dec 4, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 877
/
Copy pathapp.module.ts
53 lines (48 loc) · 1.73 KB
/
app.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// #docregion
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { HttpModule } from '@angular/http';
import { ReactiveFormsModule } from '@angular/forms';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
import { HeroListComponent } from './hero-list.component';
import { HeroCounterComponent } from './hero-counter.component';
import { MessageLogComponent } from './message-log.component';
import { LoadingComponent } from './loading.component';
import { AddHeroComponent } from './add-hero.component';
import { ObservablePrinciples } from './observable-principles';
import { LoadingService } from './loading.service';
import { HeroService } from './hero.service';
// #docregion event-aggregator-import
import { EventAggregatorService } from './event-aggregator.service';
// #enddocregion event-aggregator-import
// Imports for loading & configuring the in-memory web api
import { InMemoryWebApiModule } from 'angular-in-memory-web-api';
import { InMemoryDataService } from './in-memory-data.service';
@NgModule({
imports: [
BrowserModule,
HttpModule,
AppRoutingModule,
ReactiveFormsModule,
InMemoryWebApiModule.forRoot(InMemoryDataService)
],
declarations: [
AppComponent,
HeroCounterComponent,
HeroListComponent,
MessageLogComponent,
LoadingComponent,
AddHeroComponent
],
providers: [
ObservablePrinciples,
HeroService,
LoadingService,
EventAggregatorService
],
bootstrap: [ AppComponent ]
})
export class AppModule {
}
// #enddocregion