You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first time that I load an Angular page with a cb-enum select control, it is not populated and I see an error in the developer console. The error is not seen when I subsequently reload the page, perhaps due to caching.
angular.js:13294Error: Not yet initialized!
at CatBootEnumService.list (http://localhost:8080/webjars/cat-boot-i18n-angular/0.0.10/cat-boot-enum/cat-boot-enum-service.js:35:23)
at link (http://localhost:8080/webjars/cat-boot-i18n-angular/0.0.10/cat-boot-enum/cat-boot-enum-directive.js:28:48)
at ma (http://localhost:8080/webjars/angular/1.5.2/angular.min.js:79:117)
at n (http://localhost:8080/webjars/angular/1.5.2/angular.min.js:64:405)
at g (http://localhost:8080/webjars/angular/1.5.2/angular.min.js:57:378)
at n (http://localhost:8080/webjars/angular/1.5.2/angular.min.js:64:349)
at g (http://localhost:8080/webjars/angular/1.5.2/angular.min.js:57:378)
at g (http://localhost:8080/webjars/angular/1.5.2/angular.min.js:57:395)
at http://localhost:8080/webjars/angular/1.5.2/angular.min.js:57:17
at A.link (http://localhost:8080/webjars/angular-route/1.5.0/angular-route.min.js:7:442)
The text was updated successfully, but these errors were encountered:
#13 suggested a possible fix. Another possible fix I've seen online involved adding special logic in the route provider config (app.js in cat-boot-sample), but I have not investigated that further.
From the code, it looks like loadingPromise is intended as an implementation detail and not as part of the API. How should we access it?
In addition, I don't like the idea that the router has to know about the dependencies of the individual pages. Maybe that could be solved by somehow getting the 'resolve' value from the controller?
The first time that I load an Angular page with a cb-enum select control, it is not populated and I see an error in the developer console. The error is not seen when I subsequently reload the page, perhaps due to caching.
This can be reproduced with https://github.com/Catalysts/cat-boot-sample (master), loading http://localhost:8080/angular#/dynamic-page-1. Adding a loading screen does not fix the issue (see branch feature/jc/loading-screen).
The error is shown below:
The text was updated successfully, but these errors were encountered: