diff options
author | crupest <crupest@outlook.com> | 2019-02-22 13:58:51 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-02-22 13:58:51 +0800 |
commit | 40c206a68dc1761f5b832602a9dec0aadb1f6ac5 (patch) | |
tree | 5665bdb6146d4153bc7e98fdc7cbe5d89205fc7b /Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.ts | |
parent | 504d770e51a07ca7765de725979412b6dacdcf15 (diff) | |
download | timeline-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.ts | 3 |
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); } - } |