|
@ -1,18 +1,10 @@ |
|
|
import { Component } from '@angular/core'; |
|
|
|
|
|
|
|
|
|
|
|
import { Task } from './task'; |
|
|
|
|
|
|
|
|
import { Component, VERSION } from '@angular/core'; |
|
|
|
|
|
|
|
|
@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 { |
|
|
export class AppComponent { |
|
|
task = new Task({ TaskSn: '001', TaskName: '待辦事項 A', State: 'Finish' }); |
|
|
|
|
|
|
|
|
|
|
|
columnDesc = { |
|
|
|
|
|
TaskSn: '編號', |
|
|
|
|
|
TaskName: '名稱', |
|
|
|
|
|
State: '狀態', |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
pi = 3.1415926; |
|
|
} |
|
|
} |