$state.go is now Async

Every since ios9 update my $state.go is not working sync. I have this piece of code in my ionic application


Simple right well the state.go transition do a full page refresh.
The problem I’m having is that $state.go doesn’t finish before my window.location.reload triggers.

I found this work around.

setTimeout(function () {
}, 20)

But as you can see it is really messy and it looks really weird. I was wondering if any of you guys encounter this problem if so, do you have any tips for a rookie.


what about reload attribute ?