重装我正在开发中的离子框架移动应用。我已经集成了登录和注销功能。当我注销它不注销。当我刷新页面,然后用户注销。这里是我的代码:如何离子
$scope.logout = function() {
alert("here");
storageService.clearAll();
$ionicHistory.clearCache();
$ionicHistory.clearHistory();
$ionicHistory.nextViewOptions({ disableBack: true, historyRoot: true });
$scope.popover.hide();
$state.go('services', {}, {reload: true})
}
有没有在你的应用程序中的任何后端服务 – Ahmer
是............. @ Ahmer –
做刷新将是一个不好的解决方案。你应该确切的问题。 exaclt'not log out out'是什么意思?注销后不会登录到“服务”页面吗? –