当ng-grid内部有ng-grid时,它没有得到更新

时间:2022-02-22 13:05:11

Please take a look at following plunker http://plnkr.co/edit/34JedA It is a simple app with a ng-grid. What I need to do is navigate to the edit page when the edit button is clicked. What happens is instead of going to the edit page columns in the grid get messed up. Could anyone please explain why it is happening and what I could do to correct it.

请看看下面的plunker http://plnkr.co/edit/34JedA这是一个带有ng-grid的简单应用程序。我需要做的是在单击编辑按钮时导航到编辑页面。会发生什么,而不是去网格中的编辑页面列搞砸了。任何人都可以解释为什么会发生这种情况以及我可以做些什么来纠正它。

2 个解决方案

#1


2  

There seems to be a problem with the ng-grid version you are using, I changed to the latest version I found and it worked.

您正在使用的ng-grid版本似乎有问题,我更改为我找到的最新版本并且它有效。

  <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/ng-grid/2.0.8/ng-grid.debug.js"></script> 

Example: http://plnkr.co/edit/5myA2K?p=preview

#2


0  

Do not include file with following header.

不要包含带有以下标题的文件。

/***********************************************
* ng-grid JavaScript Library

* Compiled At: 04/22/2014 16:27
***********************************************/

instead of this, please add

而不是这个,请添加

/***********************************************
* ng-grid JavaScript Library

* Compiled At: 04/07/2014 16:55
***********************************************/

#1


2  

There seems to be a problem with the ng-grid version you are using, I changed to the latest version I found and it worked.

您正在使用的ng-grid版本似乎有问题,我更改为我找到的最新版本并且它有效。

  <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/ng-grid/2.0.8/ng-grid.debug.js"></script> 

Example: http://plnkr.co/edit/5myA2K?p=preview

#2


0  

Do not include file with following header.

不要包含带有以下标题的文件。

/***********************************************
* ng-grid JavaScript Library

* Compiled At: 04/22/2014 16:27
***********************************************/

instead of this, please add

而不是这个,请添加

/***********************************************
* ng-grid JavaScript Library

* Compiled At: 04/07/2014 16:55
***********************************************/