首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >找不到模块角2材料/材料

找不到模块角2材料/材料
EN

Stack Overflow用户
提问于 2015-10-17 01:22:02
回答 1查看 2.1K关注 0票数 1

我试图将angular2与angular2_material结合使用,并得到了这个错误。

找不到模块angular2 2_material/material

我看了一下这个链接:https://github.com/urish/angular2-material-build,但不理解它的工作原理。我试图将文件夹angular2_material包含在node_modules中。

我也试过看这个http://plnkr.co/edit/vSS7yMroAeTDHALG8eEg?p=preview。无法理解在客户端应用程序中使用的js如下:

代码语言:javascript
复制
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)

这段代码是打字稿还是不?

EN

回答 1

Stack Overflow用户

发布于 2016-03-06 21:18:52

angular2_material还不能使用。另见https://github.com/angular/material2/issues/105

一旦更多的事情准备就绪,我们很快就会将字母0发布到npm。公告可能会在Twitter上发布,所以请继续关注!

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33181745

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档