Open JoelColledge opened 8 years ago
https://github.com/Catalysts/cat-boot/pull/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.
your application has to wait until the promise is returned, this can be achieved via the 'resolve' properties of ngRoute or uiRouter
if you don't use any router you would have to add some custom handling for this case
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: