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-18 00:11:24 +0800
committercrupest <crupest@outlook.com>2019-02-18 00:11:24 +0800
commit5194cfc3fc9bbe6d2e03fdceb4ed58a8b7c0f6a9 (patch)
treec0269613f78380f202be80718c247d7e7a31bfa2 /Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.ts
parent94d9233375f3c8bedcf4dbc62e59f20969af7cb9 (diff)
downloadtimeline-5194cfc3fc9bbe6d2e03fdceb4ed58a8b7c0f6a9.tar.gz
timeline-5194cfc3fc9bbe6d2e03fdceb4ed58a8b7c0f6a9.tar.bz2
timeline-5194cfc3fc9bbe6d2e03fdceb4ed58a8b7c0f6a9.zip
Add todo list request service.
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.ts7
1 files changed, 6 insertions, 1 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 37de232b..6037e1ea 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
@@ -1,4 +1,5 @@
import { Component, OnInit } from '@angular/core';
+import { TodoListService } from '../todo-list.service';
@Component({
selector: 'app-todo-list-page',
@@ -7,7 +8,11 @@ import { Component, OnInit } from '@angular/core';
})
export class TodoListPageComponent implements OnInit {
- constructor() { }
+ items: string[];
+
+ constructor(private todoService: TodoListService) {
+ todoService.getWorkItemList().subscribe(result => this.items = result);
+ }
ngOnInit() {
}