aboutsummaryrefslogtreecommitdiff
path: root/Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.ts
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-02-22 13:58:51 +0800
committercrupest <crupest@outlook.com>2019-02-22 13:58:51 +0800
commit55505bf5487bb43e2423bafd46bd50a8b10b0a6f (patch)
treedef06bce269f02864a625ed19bc6832f5a9a1585 /Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.ts
parent57f88746769432ed2d529a4f050783d84f9fb2bc (diff)
downloadtimeline-55505bf5487bb43e2423bafd46bd50a8b10b0a6f.tar.gz
timeline-55505bf5487bb43e2423bafd46bd50a8b10b0a6f.tar.bz2
timeline-55505bf5487bb43e2423bafd46bd50a8b10b0a6f.zip
Use fakeAsync instead of async.
Diffstat (limited to 'Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.ts')
-rw-r--r--Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.ts b/Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.ts
index 8af1f5ef..06f49923 100644
--- a/Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.ts
+++ b/Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.ts
@@ -11,10 +11,9 @@ export class TodoListPageComponent implements OnInit {
items: WorkItem[];
constructor(private todoService: TodoListService) {
- todoService.getWorkItemList().subscribe(result => this.items = result);
}
ngOnInit() {
+ this.todoService.getWorkItemList().subscribe(result => this.items = result);
}
-
}