Ng-网格vs.ui-网格 [英] Ng-grid vs. ui-grid
问题描述
我查看了angular-ui模块,因为我需要实现一个网格.
I looked at the angular-ui modules because I need to implement a grid.
我看到有稳定的ng-grid和不稳定的ui-grid版本.
I saw that there is the stable ng-grid and the unstable version ui-grid.
我应该使用哪个版本?
它们是完全不同还是很难切换?
Which version should I use?
Are they very different or hard to switch?
推荐答案
github回购说所有开发都将在ui-grid(ng-grid 3)上进行.这意味着ng-grid已成为旧版网格.我认为ui-grid足够稳定,可以使用,并且使用ng-grid的唯一原因是您是否已经开始使用它.使用ui-grid更好地开发新项目.他们还声称,尽管我尚未测试ui-grid的性能优于ng-grid.
The github repo says that all development will happen on ui-grid (ng-grid 3). That means ng-grid has become a legacy grid. ui-grid is stable enough to use in my opinion and the only reason to use ng-grid is if you already started with it. New projects would be better off using ui-grid. They also claim that the performance of ui-grid is better than that of ng-grid though I haven't tested that.
更新:
一个稳定的UI Grid 3版本已经发布,这意味着它可以在生产应用程序中使用.在其文档站点上,他们提供了有关如何从旧版ng-grid升级的指南.参见教程:099升级
A stable version of UI Grid 3 is out which means that it can be used in production applications. On their documentation site, they have a guide on how to upgrade from legacy ng-grid. See Tutorial: 099 Upgrading
这篇关于Ng-网格vs.ui-网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!