Routing problems

Hey guys, having a problem that I just can’t figure out. I’ve updated my app to 1.1.1 (tried 1.1.0 as well, but same issue), and now the main page loads fine, but when I try to go to a different view, it shows the new view quickly, and redirects back to the main view (the one listed under otherwise(’/home’). I’ve tried debugging using ionic serve, and I end up getting errors saying [$rootScope:infdig] 10 $digest() iterations reached. Aborting! I’ve tried every possible way of getting this to work, to no avail. Anyways, here is my config for states. Let me know if anything more is needed, and I’ll gladly provide.

$stateProvider.state(‘home’, {
url: ‘/home’,
templateUrl: ‘templates/home.html’
})
.state(‘product’, {
url: ‘/product’,
templateUrl: ‘templates/product.html’,
controller: ‘ProductController’,
cache: false
})
.state(‘history’, {
url: ‘/history’,
templateUrl: ‘templates/history.html’,
controller: ‘HistoryController’,
cache: false
})
.state(‘buyList’, {
url: ‘/buy-list’,
templateUrl: ‘templates/buy-list.html’,
controller: ‘BuyListController’,
cache: false
})
.state(‘multipleItem’, {
url: ‘/multiple-item’,
templateUrl: ‘templates/multiple-item.html’,
controller: ‘MultipleItemController’,
cache: false
});

BTW, this worked perfectly in IOS 9.0 with Ionic 1.0. It wasn’t until my wife upgraded to 9.1 that any issue with routing became a problem. I had the IOS 9 patch in place, but I don’t think that is needed anymore with Ionic 1.1.1. I tried both with and without, and it didn’t work regardless.

Could you print the error message that you are receiving?

50    038147   error    Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
Watchers fired in the last 5 iterations: []
http://errors.angularjs.org/1.3.13/$rootScope/infdig?p0=10&p1=%5B%5D
at http://localhost:8100/lib/ionic/js/ionic.bundle.js:8890:12
at Scope.$digest (http://localhost:8100/lib/ionic/js/ionic.bundle.js:23108:19)
at Scope.$apply (http://localhost:8100/lib/ionic/js/ionic.bundle.js:23333:24)
at http://localhost:8100/lib/ionic/js/ionic.bundle.js:25059:36
at completeOutstandingRequest (http://localhost:8100/lib/ionic/js/ionic.bundle.js:13732:10)
at http://localhost:8100/lib/ionic/js/ionic.bundle.js:14112:7

Didn’t find any solution, but I found a discussion that could help you.

Take a look:

I’ve never passed through this error before.

Appreciate it, but I’ve already got that implemented, and it still isn’t working. Banging my head at this point

Did you inject also inject the dependency ‘ngIOS9UIWebViewPatch’?

Yes sir, but still not working :confused: I’m stumped

I also injected ngIOS9UIWebViewPatch but still not working for me in ios 9 devices, I need to navigate between view’s with passing parameters