angular-ui/ui-grid

Error on second display of modal, 'Error: [$compile:ctreq] Controller 'uiGrid', required by directive 'uiGridHeaderCell'

Open

#4,421 创建于 2015年9月23日

在 GitHub 查看
 (11 评论) (0 反应) (0 负责人)JavaScript (5,395 star) (2,496 fork)batch import
good first issue

描述

I am getting the 'Error: [$compile:ctreq] Controller 'uiGrid', required by directive 'uiGridHeaderCell', can't be found!' error when trying to implement a custom filter modal. The same error is reproducable in the custom filter tutorial (http://ui-grid.info/docs/#/tutorial/306_custom_filters). Both errors appear only upon the second load of the modal and don't seem to cause any functionality problems but it would be great to have a way to get rid of them. To reproduce it in the Grid UI custom filter tutorial click on the '...' on the Age header then click filter to close it, then click on '...' again. On the second time the error below will appear.

Produced by my custom filter modal: image

Prouded by the custom filter modal in the Grid UI tutorial (). The error will display on the second time. image

贡献者指南