1
我想用angular2_material和angular2_material我得到這個錯誤。找不到模塊angular2_material /素材
找不到模塊angular2_material /材料
我看了看這個鏈接:https://github.com/urish/angular2-material-build,但沒有明白的工作。我試圖在node_modules中包含文件夾angular2_material。
我也試過看這個http://plnkr.co/edit/vSS7yMroAeTDHALG8eEg?p=preview了。不明白在客戶端aplication工作JS這樣的:
import {ComponentAnnotation as Component, ViewAnnotation as View, bootstrap} from 'angular2/angular2';
import {MdInput, MdInputContainer} from 'angular2_material/material';
@Component({
selector: 'test-app'
})
@View({
template:`
<h1>AngularJs 2 Material Design Demo</h1>
<md-input-container>
<label>Your name</label>
<input #newname />
</md-input-container>
<p>
Hello, {{newname.value}}
</p>
`,
directives: [MdInputContainer, MdInput]
})
class TestApp {
constructor(){
this.title = 'AngularJs 2 Material Design Demo';
}
}
bootstrap(TestApp)
此代碼是打字稿與否?
您必須等待https://github.com/angular/angular/issues/4612 –