|
@ -1,20 +1,18 @@ |
|
|
import { Component } from '@angular/core'; |
|
|
import { Component } from '@angular/core'; |
|
|
import { Task } from './task'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import { Task } from './task'; |
|
|
|
|
|
|
|
|
@Component({ |
|
|
@Component({ |
|
|
selector: 'my-app', |
|
|
selector: 'my-app', |
|
|
templateUrl: './app.component.html', |
|
|
templateUrl: './app.component.html', |
|
|
styleUrls: [ './app.component.css' ] |
|
|
|
|
|
|
|
|
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' }), |
|
|
|
|
|
]; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
export class AppComponent { |
|
|
|
|
|
task = new Task({ TaskSn: '001', TaskName: '待辦事項 A', State: 'Finish' }); |
|
|
|
|
|
|
|
|
|
|
|
columnDesc = { |
|
|
|
|
|
TaskSn: '編號', |
|
|
|
|
|
TaskName: '名稱', |
|
|
|
|
|
State: '狀態', |
|
|
|
|
|
}; |
|
|
|
|
|
} |