I posted the below on SO; anyone here have thoughts/workarounds for this, since Ionic is integrated with ui-router ?
I’m using Ionic Framework, which is integrated with ui-router, and I’ve found that models that are associated with promises via my controller aren’t updated in the UI when, eg, a REST call via $http returns. Is this happening because I’m not using “resolve” in the state setup ? Is it required to use “resolve” for this to work ?
If “resolve” is required for this to work, then I find it horrible that my app-related code is spread among “resolve” and my controller; why would that be necessary ? What about cases where it’s not desirable to have the framework wait for “resolve” to finish ( ie, make a bunch of network calls ) before my controller executes ?