0
我試圖創建一個簡單的角度2號鍋爐此板Angular 2鍋爐板?
https://plnkr.co/edit/bT4mxVaUNnxfIm5t0zFQ?p=preview
有人能看到爲什麼它不工作
//our root app component
import {Component, NgModule, VERSION} from '@angular/core'
@Component({
selector: 'my-app',
template: `
<div>
<h2>Hello {{name}}</h2>
</div>
`,
})
export class AppComponent {
name:string;
constructor() {
this.name = `Angular`
}
}
我強烈建議使用Angular CLI來生成您的應用程序樣板。你可以在這裏找到︰https://github.com/angular/angular-cli – DeborahK
@DeborahK,我不使用angular-cli進行探索,有太多你不需要 –
我使用https:// github.com/AngularClass/angular-starter作爲我的Angular4x項目的鍋爐板,到目前爲止我很滿意。 – Rama