我想从历史记录中删除以前的状态,以便返回将用户返回两个状态。这是我做的。
app.controller('postBlogCtrl', function($scope, $state, $http, $ionicLoading,
$rootScope, $filter, genericServices, $ionicHistory){
if($rootScope.previousStateName != "app.community-feed"){
$ionicHistory.removeBackView();
}
};
我得到一个错误TypeError: $ionicHistory.removeBackView is not a function
。
我不想删除后退按钮。相反,我想回到两个国家。 –