diff options
author | crupest <crupest@outlook.com> | 2019-02-18 00:11:24 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-02-18 00:11:24 +0800 |
commit | 633e7357b41b5b3e99df887215bed620034eda6a (patch) | |
tree | cae8958b853ee87a885d2a8e73e8df78220e2cf6 /Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.ts | |
parent | 122a28595e45c6ec48a773ca1284238566d497d3 (diff) | |
download | timeline-633e7357b41b5b3e99df887215bed620034eda6a.tar.gz timeline-633e7357b41b5b3e99df887215bed620034eda6a.tar.bz2 timeline-633e7357b41b5b3e99df887215bed620034eda6a.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.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..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() { } |