aboutsummaryrefslogtreecommitdiff
path: root/Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.ts
blob: 8af1f5efed05b7d0d0d28b65d7cb6fc6d12bfff0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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) {
    todoService.getWorkItemList().subscribe(result => this.items = result);
  }

  ngOnInit() {
  }

}