如何在Angular 2 Apps中使用角度材料(https://material.angularjs.org)? [英] How to use angular material (https://material.angularjs.org) in Angular 2 Apps?

查看:73
本文介绍了如何在Angular 2 Apps中使用角度材料(https://material.angularjs.org)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我记得在ng-conf的Angular 2演示之一中看到了angular-material.css.有人可以确认是否可行...

I remember having seen angular-material.css being used in one of the Angular 2 Demos at ng-conf. Can someone confirm if this works...

此外,是否可以在Angular 2 Apps中使用以下内容:

Also, is it possible to use the following in Angular 2 Apps:

  • angular-material.js
  • angular-animate.js
  • angular-aria.js

我知道以上js对Angular 1.3+有依赖性,但是如果我在Angular 2依赖性之上又添加了该依赖性,该怎么办.这些可以了吗?

I know that above js have a dependency on Angular 1.3+, but what if I add that dependency over and above my Angular 2 dependency. Will these work then?

推荐答案

因此,当前您无法将当前的角度材质与angular2一起使用.

So currently you cannot use the current angular material with angular2.

根据 Marcy Sutton ,他们将致力于合并Angular团队完成1.x任务后,即可使用.

According to Marcy Sutton, they will be addressing incorporation of Angular Material once the team has realeased 1.x.

https://github.com/angular/material2 是与之兼容的新存储库ng2.已经有一些Material分支可以使用ng2,例如 ng2-material .

https://github.com/angular/material2 is the new repo that will be compatible with ng2. There are some forks of Material that may work with ng2 already such as ng2-material.

这篇关于如何在Angular 2 Apps中使用角度材料(https://material.angularjs.org)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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