aboutsummaryrefslogtreecommitdiff
path: root/Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.ts
blob: 722ecbdc8b7e112b66736edc181f058db6279b0e (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() {
  }

}