external-scopes no longer works in ui-grid

我的梦境 提交于 2019-12-06 01:24:00

externalScopes was removed in RC 19. You can read the notes here: https://github.com/angular-ui/ng-grid/blob/master/CHANGELOG.md#breaking-changes

Instead, you can use appScope, which has been docoumented here: http://ui-grid.info/docs/#/tutorial/305_appScope

The grid gets a property called appScope added to it that simply references its parent scope, so you don't have to pass the grid any options. If you have a function named click() on your controller's scope you can access it in your cell templates and whatnot via grid.appScope.click().

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!