aboutsummaryrefslogtreecommitdiff
path: root/Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.ts
blob: 6037e1eaa57fc7f8bcb48b61c2b309a24694c4dc (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 } 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: string[];

  constructor(private todoService: TodoListService) {
    todoService.getWorkItemList().subscribe(result => this.items = result);
  }

  ngOnInit() {
  }

}