Wrong order for ionic view event

@ArnaudDev there are other events in the navigation workflow, and the “magic” happens at the delicate interface between two different projects: Ionic and angular-ui-router. It’s not realistic to hope it’ll be refactored unless there’s a really strong and compelling reason, not to mention all the apps that use it and expect it to continue working the way it works now.

I think your best strategy would be to learn how they work (even if you don’t agree with it) and then relocate your code to another stage, one better fit for what you have in mind, within that workflow that’s already there.

Check this, maybe it helps Codepen to help you understand Ionic Views, UI-Router, Cache