[英]Can I use angular material 2 with an angularJS application?
I have an AngularJS app and I found that the mat-table in angular material 2 is really suitable for my need but I don't know how to integrate it or if I can to the app. 我有一个AngularJS应用程序,我发现角材料2中的垫子桌子确实适合我的需要,但是我不知道如何集成它,或者我是否可以集成到该应用程序中。 Does anyone know if I can ?
有人知道我能吗? I'm currently using the https://material.angularjs.org library that doesn't offer a table display.
我目前正在使用不提供表格显示的https://material.angularjs.org库。 So my question is can I use the angular material 2 library with in the AngularJS application ?
所以我的问题是我可以在AngularJS应用程序中使用angular material 2库吗? If not, does anyone know of a library that offers a component like mat-table ?
如果不是,是否有人知道提供像mat-table这样的组件的库?
Thank you in advance for your help, 预先感谢您的帮助,
Although there's no official table component for AngularJS Material, there is an unofficial library that I think is what you're looking for: md-data-table
尽管AngularJS Material没有正式的表组件,但我想找的是一个非官方的库:
md-data-table
Another way would be to use a native <table>
with ng-repeat
and apply Material styles via CSS. 另一种方法是将本地
<table>
与ng-repeat
并通过CSS应用Material样式。
You could also port the table component to AngularJS via Angular Elements, although it can be tricky. 您也可以通过Angular Elements将表组件移植到AngularJS,尽管这可能很棘手。 (I haven't tried porting it...)
(我没有尝试过移植...)
Hope this helps! 希望这可以帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.