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
commit40c206a68dc1761f5b832602a9dec0aadb1f6ac5 (patch)
tree5665bdb6146d4153bc7e98fdc7cbe5d89205fc7b /Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.ts
parent504d770e51a07ca7765de725979412b6dacdcf15 (diff)
downloadtimeline-40c206a68dc1761f5b832602a9dec0aadb1f6ac5.tar.gz
timeline-40c206a68dc1761f5b832602a9dec0aadb1f6ac5.tar.bz2
timeline-40c206a68dc1761f5b832602a9dec0aadb1f6ac5.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);
}
-
}