blob: 06f49923d9a10799b69c7f011b2381ba2005c9be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import { Component, OnInit } from '@angular/core';
import { TodoListService, WorkItem } from './todo-list.service';
@Component({
selector: 'app-todo-list-page',
templateUrl: './todo-list-page.component.html',
styleUrls: ['./todo-list-page.component.css']
})
export class TodoListPageComponent implements OnInit {
items: WorkItem[];
constructor(private todoService: TodoListService) {
}
ngOnInit() {
this.todoService.getWorkItemList().subscribe(result => this.items = result);
}
}
|