-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Expand file tree
/
Copy pathapp.module.ts
More file actions
36 lines (35 loc) · 1.14 KB
/
app.module.ts
File metadata and controls
36 lines (35 loc) · 1.14 KB
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
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule, HttpXhrBackend } from '@angular/common/http';
import { AppComponent } from './app.component';
import { MediaItemComponent } from './media-item.component';
import { MediaItemListComponent } from './media-item-list.component';
import { FavoriteDirective } from './favorite.directive';
import { CategoryListPipe } from './category-list.pipe';
import { MediaItemFormComponent } from './media-item-form.component';
import { lookupListToken, lookupLists } from './providers';
import { MockXHRBackend } from './mock-xhr-backend';
@NgModule({
imports: [
BrowserModule,
ReactiveFormsModule,
HttpClientModule
],
declarations: [
AppComponent,
MediaItemComponent,
MediaItemListComponent,
FavoriteDirective,
CategoryListPipe,
MediaItemFormComponent
],
providers: [
{ provide: lookupListToken, useValue: lookupLists },
{ provide: HttpXhrBackend, useClass: MockXHRBackend }
],
bootstrap: [
AppComponent
]
})
export class AppModule {}