Ng-grid 与 ui-grid [英] 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 repo 说所有的开发都将在 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-grid 与 ui-grid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!