diff options
author | crupest <crupest@outlook.com> | 2019-03-06 21:29:36 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-03-06 21:29:36 +0800 |
commit | 63735a8267d44892a64da5b599b7c2e20f373464 (patch) | |
tree | 7f43f0beb8c465e06e0d1c4d18cadfb77c39bc78 /Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.ts | |
parent | 8ec742c4a00c1732d6aa58a1cb8b628428d23c4a (diff) | |
download | timeline-63735a8267d44892a64da5b599b7c2e20f373464.tar.gz timeline-63735a8267d44892a64da5b599b7c2e20f373464.tar.bz2 timeline-63735a8267d44892a64da5b599b7c2e20f373464.zip |
Reorganize file structure.
Diffstat (limited to 'Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.ts')
-rw-r--r-- | Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.ts | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.ts b/Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.ts deleted file mode 100644 index c62dd808..00000000 --- a/Timeline/ClientApp/src/app/todo-list-page/todo-list-page.component.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Component, OnInit } from '@angular/core'; -import { TodoListService, TodoItem } from './todo-list.service'; -import { trigger, transition, style, animate } from '@angular/animations'; - -@Component({ - selector: 'app-todo-list-page', - templateUrl: './todo-list-page.component.html', - styleUrls: ['./todo-list-page.component.css', './todo-list-color-block.css'], - animations: [ - trigger('itemEnter', [ - transition(':enter', [ - style({ - transform: 'translateX(-100%) translateX(-20px)' - }), - animate('400ms ease-out', style({ - transform: 'none' - })) - ]) - ]) - ] -}) -export class TodoListPageComponent implements OnInit { - - items: TodoItem[] = []; - isLoadCompleted = false; - - constructor(private todoService: TodoListService) { - } - - ngOnInit() { - this.todoService.getWorkItemList().subscribe({ - next: result => this.items.push(result), - complete: () => { this.isLoadCompleted = true; } - }); - } -} |