ionic中返回上一页

.controller('NewsCtrl', ["$scope", "$ionicHistory", "$http","$timeout", "newssever",

$scope.goback=function(){
$ionicHistory.goBack();
}

通过 $ionicHistory.goBack();

模板:

<button class="button button-icon" ng-click="goback()">
<i class="icon ion-ios-arrow-back"></i>
</button>

posted @ 2016-11-17 17:36  小小强学习网  阅读(5556)  评论(0编辑  收藏  举报