|
|
@ -1,4 +1,5 @@ |
|
|
|
import { Component } from '@angular/core'; |
|
|
|
import { Task } from './task'; |
|
|
|
|
|
|
|
|
|
|
|
@Component({ |
|
|
@ -7,5 +8,13 @@ import { Component } from '@angular/core'; |
|
|
|
styleUrls: [ './app.component.css' ] |
|
|
|
}) |
|
|
|
export class AppComponent { |
|
|
|
value = '只會顯示七個字(這裡全不顯示)'; |
|
|
|
|
|
|
|
tasks: Task[] = [ |
|
|
|
new Task({ TaskSn: '001', TaskName: '待辦事項 A', State: 'Finish' }), |
|
|
|
new Task({ TaskSn: '002', TaskName: '待辦事項 B', State: 'Doing' }), |
|
|
|
new Task({ TaskSn: '003', TaskName: '待辦事項 C', State: 'None' }), |
|
|
|
new Task({ TaskSn: '004', TaskName: '待辦事項 D', State: 'None' }), |
|
|
|
]; |
|
|
|
} |
|
|
|
|