Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Routing problems

$
0
0

@tomandhisjones wrote:

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.

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>