aboutsummaryrefslogtreecommitdiff
path: root/Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.ts
blob: e58cca7de10d15233c78e5a4674c3b08e0944627 (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', './todo-list-color-block.css']
})
export class TodoListPageComponent implements OnInit {

  items: WorkItem[];

  constructor(private todoService: TodoListService) {
  }

  ngOnInit() {
    this.todoService.getWorkItemList().subscribe(result => this.items = result);
  }
}