找不到模块angular2_material/material [英] Cannot find module angular2_material/material

查看:194
本文介绍了找不到模块angular2_material/material的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将angular2与angular2_material一起使用,但出现此错误.

I am trying to use angular2 with angular2_material and I get this error.

找不到模块angular2_material/material

我查看了以下链接: https://github.com/urish/angular2-material -build ,但无法正常运行.我试图在node_modules中包含文件夹angular2_material.

I looked at this link: https://github.com/urish/angular2-material-build, but no understand as working. I tried to include the folder angular2_material in node_modules.

我尝试查看此 http://plnkr.co/edit/vSS7yMroAeTDHALG8eEg?p=预览.不了解在客户端应用程序js中的工作原理:

I tried looking at this http://plnkr.co/edit/vSS7yMroAeTDHALG8eEg?p=preview too. Not understand as worked in client aplication js this:

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)

此代码是否为打字稿?

推荐答案

angular2_material尚不可用.另请参见 https://github.com/angular/material2/issues/105

angular2_material is not yet useable. See also https://github.com/angular/material2/issues/105

一旦其他事情准备就绪,我们将很快将alpha.0发布到npm.该公告可能会在Twitter上发布,敬请期待!

We'll soon be publishing an alpha.0 to npm once a few more things are ready. The announcement will probably be on Twitter, so stay tuned!

这篇关于找不到模块angular2_material/material的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆