Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Routing problems after update to 1.2.1 from 1.0.1

$
0
0

Hey guys, I just upgraded my app to use Ionic 1.2.1 from 1.0.1, and now I can't get it to change routes from the otherwise state. It will go to the home screen, but any time I try to change to a different view, it slides over and then immediately slides back to the home page.

I have implemented the ngIOS9UIWebViewPatch, but it is still doing the same thing. Here is my routing code:

`app.config(function($stateProvider, $urlRouterProvider, $ionicConfigProvider) {

$ionicConfigProvider.views.maxCache(0);

$urlRouterProvider.otherwise('/');


$stateProvider.state('home', {
    url: '/',
    templateUrl: 'templates/home.html'
});

$stateProvider.state('product', {
    url: '/product',
    templateUrl: 'templates/product.html',
    controller: 'ProductController',
});

$stateProvider.state('buylist', {
    url: '/buy-list',
    templateUrl: 'templates/buy-list.html',
    controller: 'BuyListController',
});

$stateProvider.state('history', {
    url: '/history',
    templateUrl: 'templates/history.html',
    controller: 'HistoryController',
});

$stateProvider.state('multipleItem', {
    url: '/multiple-item',
    templateUrl: 'templates/multiple-item.html',
    controller: 'MultipleItemController',
});

});`


Viewing all articles
Browse latest Browse all 228595

Trending Articles



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