-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Controller 'uiGrid', required by directive 'uiGrid', can't be found! #2804
Comments
How are you referencing ui-grid? Did you install it with bower? Check your Network tab in developer tools, is ui-grid.js being loaded? Can you run |
1.) yes i am refering to ui-grid. the only change i did in my project is updating ui-grid version from .18 to .19 i did some tests , and it seems that in fresh project it's work with no problem... i guess i have some conflicts between plugins. |
+1 I experience this problem as well. I have a nested grid and I believe this is generated by the directive "uiGrid" in the ui.grid.expandable module. If I comment the following line (line 13724 in ui-grid.js) the error is gone, the nested grid is shown but I get many other errors along the way.
I'm using angular 1.3.4 to test it |
I can't reproduce it with this plunker: http://plnkr.co/edit/pfOCdkdI9zZ4lfgJC5GU?p=preview Any ideas? |
Try Firefox. The plunker you linked works fine in IE but dies in FF. |
I've found setting the The idea being to force angular to run that directive it after the "uiGrid" directive from |
Any updates on this, it happens if i used a ng-if tag on a div containing the ui-grid directive. |
@devakone Strange, the plunker forks fine for me in FF as well. I'm using v36.0.4. Can you check on your version? |
I fixed it by setting the ng-if directive on a parent div! |
OK, but I guess what I'm saying is that I'm not finding it necessary to do that to get that plunker to work... |
I concur that I can no longer reproduce it on the original plunkr, but @devakone is right about ng-if breaking it. Here's a fork of your plunkr with no change other than an ng-if on the div: http://plnkr.co/edit/Xy9o9tXqwu2dQKwIFmCF?p=preview Breaks on FF 36.0.4 for me, both with and without addons. |
OK I found it. ngIf runs with priority 600 and the expandable feature stacks uiGrid with a directive that runs at 1000: https://github.com/angular-ui/ng-grid/blob/master/src/features/expandable/js/expandable.js#L284 |
i updated the ui-grid from
! ui-grid - v3.0.0-RC.18 - 2014-12-09 to * ui-grid - v3.0.0-rc.19 - 2015-02-11
and i got the error
Error: [$compile:ctreq] Controller 'uiGrid', required by directive 'uiGrid', can't be found!
what am i missing ?
The text was updated successfully, but these errors were encountered: