How to make a resolve like ui-router


I want to make a resolver in my app config but Ionic 2 in typesrcipt use es5 and Resolve is not surppoted by es5 (@angular/router).

How can I implement it ?

Thank you

this has nothing to do with es5…

the angular router is for routing in angular 2 apps and ionic 2 uses its own routing

Both are written in TypeScript and using ES6 features.
And they are both transpiled to ES5 if you build your app, because not all browsers are supporting full ES6/2015 features.

I think resolve is not supported, you could try to build something similar with the view hooks/ page events.

Or you could try to override the NavController with an own one with that functionality (what i not recommend ^^)