@ahm3000 wrote:
hi, I have problem with backbutton when I click back in chrome (ionic serve) it get white page , however I use windows.location to goback .
<div id="logo" > <img src="img/logo.png" height="42"/> </div> <h1 class="title"></h1> <div id = "back" > <button ng-click="myGoBack()" class="button button-clear" ><img src ="images/back.png" /></button> </div>
and app.js
.config(function($stateProvider,$urlRouterProvider, $ionicConfigProvider){ $ionicConfigProvider.views.swipeBackEnabled(false); $stateProvider .state('home',{ url:'/', templateUrl: 'pages/home.html' }) .state('evalu',{ url:'/evalu', templateUrl: 'pages/evaluation.html', controller: 'EvaluController' }) .state('services',{ url:'/services', templateUrl: 'pages/services.html', controller: 'ServicesController'
and the back function is
$scope.myGoBack = function() { //$ionicHistory.back(); $window.location.href = '#/'; };
I try also $ionicHistory it get same result ..
Posts: 3
Participants: 2