diff options
author | 杨宇千 <crupest@outlook.com> | 2019-02-18 12:14:17 +0000 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-02-18 12:14:17 +0000 |
commit | 7d08ce0d0625b8e6a4c6328d9c9d339cc52db4c2 (patch) | |
tree | 328e729bbbc08bcf8a16fc494cb1c6625e35d2a6 /Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.ts | |
parent | 94d9233375f3c8bedcf4dbc62e59f20969af7cb9 (diff) | |
parent | 1ff6afb0e9fd11ce37ed0206b992514041391761 (diff) | |
download | timeline-7d08ce0d0625b8e6a4c6328d9c9d339cc52db4c2.tar.gz timeline-7d08ce0d0625b8e6a4c6328d9c9d339cc52db4c2.tar.bz2 timeline-7d08ce0d0625b8e6a4c6328d9c9d339cc52db4c2.zip |
Merged PR 1: Develop todo list page.
Related work items: #1
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 | 7 |
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..722ecbdc 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, WorkItem } 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: WorkItem[]; + + constructor(private todoService: TodoListService) { + todoService.getWorkItemList().subscribe(result => this.items = result); + } ngOnInit() { } |