-
Notifications
You must be signed in to change notification settings - Fork 146
/
Copy pathapp.module.ts
31 lines (29 loc) · 1001 Bytes
/
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
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { AppComponent } from './app.component';
import { TodoListComponent } from './todo-list/todo-list.component';
import { TodoListFooterComponent } from './todo-list-footer/todo-list-footer.component';
import { TodoListHeaderComponent } from './todo-list-header/todo-list-header.component';
import { TodoDataService } from './todo-data.service';
import { TodoListItemComponent } from './todo-list-item/todo-list-item.component';
import { ApiService } from './api.service';
@NgModule({
declarations: [
AppComponent,
TodoListComponent,
TodoListFooterComponent,
TodoListHeaderComponent,
TodoListItemComponent
],
imports: [
BrowserModule,
FormsModule,
HttpModule
],
providers: [TodoDataService, ApiService],
bootstrap: [AppComponent]
})
export class AppModule {
}