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 | ddf2848df70c40f443773cd1b76d9db13cd1fa23 (patch) | |
tree | 8e1e2ac2dd6df278f59a97a37e5d374bc2644843 /Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.ts | |
parent | 122a28595e45c6ec48a773ca1284238566d497d3 (diff) | |
parent | 1f0a978ad2b8e5bcd57eef37baca93e00fd6b20b (diff) | |
download | timeline-ddf2848df70c40f443773cd1b76d9db13cd1fa23.tar.gz timeline-ddf2848df70c40f443773cd1b76d9db13cd1fa23.tar.bz2 timeline-ddf2848df70c40f443773cd1b76d9db13cd1fa23.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() { } |