I was reluctantly convinced to give Ionic a try. I had previously been using Angular/ui.router/Bootstrap. Big mistake.
Ionic doesn’t have the same kind of modals as Bootstrap does (and I understand the reasons why). So, I attempted to implement an authentication system with a login route, an abstract dashboard route, and a dashboard.feed route. For any route requiring authentication, I call a service from the OnEnter function of the controller which checks to see if a user is already authenticated. If not, it redirects them to the login route.
From the login controller, a successful authentication calls $state.go(“dashboard.feed”). But trying to do this gives me an error:
“Error: Could not resolve ‘/feed’ from state ‘login’”
$state.go works just fine if I attempt to call a route that doesn’t require dot-notation.
This is a major, major bug. I have no idea how this could possibly be missed in a supposedly production-level framework. Need a fix asap or I’ll have to ditch Ionic and go back to Angular.
C’mon, guys. You can do better than this.