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

查看:14
本文介绍了如何在 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 应用程序中使用以下内容:

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 中使用当前的 angular 材质.

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天全站免登陆