back-button doesn't work properly ionic famework -
i have flow in ionic app... login.html page(which "ion-view")->side-menu page(side-menu ionic framework)->page2.html page(which "ion-view"). want implement "ion-nav-bar" "ion-nav-back-button" in it. when want go page2.html app should sent me side-menu page....instead, app, sent me login page. seems side-menu not have "ion-view" in , not recorded in app flow. suggestion how can solve ? thank you
there no state side menu, can not 'go back' open side menu.
in normal, login view, should disable state temporally. app not 'go back' login view. can this:
$scope.dologin = function () { auth.login($scope.logindata, function () { console.log('login success'); $ionichistory.nextviewoptions({ disableback: true }); $state.go('home'); }); };
and can clear view history of ionic avoid going with:
$ionichistory.clearhistory(); $state.go('user.home');
Comments
Post a Comment