2015-10-17 67 views
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) 

此代码是打字稿与否?

+1

您必须等待https://github.com/angular/angular/issues/4612 –

回答