为什么后退按钮按钮不在第二个屏幕显示? [英] why the back button button not display in second screen?

查看:200
本文介绍了为什么后退按钮按钮不在第二个屏幕显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么而用户如何搬家搬一个网页到另一个网页?至于移动导航到previous页面后退按钮不显示?我禁用第二页上,但它没有任何页

上显示

  $ ionicHistory.nextViewOptions({
      disableBack:真
    });
    $ state.go('app.playlists');

其实我有一个按钮,点击我移动到另一个网页,其中有滑动菜单。对单击幻灯片菜单中用户的任何选项,无法移动到previous页

请点击按钮按钮,移动滑动菜单屏幕选择,然后从幻灯片选项将其移动到第二个屏幕,但没有后退按钮使用户无法移动previous屏幕

http://plnkr.co/edit/17MJo0Ma81Zf4lBl8vuG?p=$p$ PVIEW

  .controller('PlaylistCtrl',函数($范围,$ stateParams,$ ionicHistory){
})。控制器('A',函数($范围,$ stateParams,$状态,$ ionicHistory){  $ scope.moveto =功能(){
    $ ionicHistory.nextViewOptions({
      disableBack:真
    });
    $ state.go('app.playlists');  }})


解决方案

有,为什么你使用的是旧的CSS参考什么特别的原因?

这是您的plunker:

 <链路数据需要=ionic@1.0.0-beta.1数据semver =1.0.0-beta.1的rel =stylesheet属性HREF = HTTP://$c$c.ionicframework.com/1.0.0-beta.1/css/ionic.css/>
<脚本的src =// code.ionicframework.com /夜间/ JS / ionic.bundle.js>< / SCRIPT>

,这是它应该是什么:

 <链接rel =stylesheet属性HREF =HTTP://$c$c.ionicframework.com/nightly/css/ionic.min.css/>
<脚本的src =// code.ionicframework.com /夜间/ JS / ionic.bundle.js>< / SCRIPT>

这是叉形 plunker

why the back button is not display while moving one page to another page ?As in how user move to move navigate to previous page ? I disable on on second page but it is not display on any page

 $ionicHistory.nextViewOptions({
      disableBack: true
    });
    $state.go('app.playlists');

Actually I have one button on that click I move to another page which have slide menu .On click of any option in slide menu user not able to move to previous page

Please click the button button and move to slide menu screen and select and option from slide it move to second screen but there is no back button so user not able to move previous screen

http://plnkr.co/edit/17MJo0Ma81Zf4lBl8vuG?p=preview

.controller('PlaylistCtrl', function($scope, $stateParams,$ionicHistory) {


}).controller('a', function($scope, $stateParams, $state, $ionicHistory) {

  $scope.moveto = function() {
    $ionicHistory.nextViewOptions({
      disableBack: true
    });
    $state.go('app.playlists');

  }

}) 

解决方案

Is there any particular reason why you're using an old css reference ?

This is your plunker:

<link data-require="ionic@1.0.0-beta.1" data-semver="1.0.0-beta.1" rel="stylesheet" href="http://code.ionicframework.com/1.0.0-beta.1/css/ionic.css" />
<script src="//code.ionicframework.com/nightly/js/ionic.bundle.js"></script>

and this is what it should be:

<link rel="stylesheet" href="http://code.ionicframework.com/nightly/css/ionic.min.css" />
<script src="//code.ionicframework.com/nightly/js/ionic.bundle.js"></script>

this is the forked plunker.

这篇关于为什么后退按钮按钮不在第二个屏幕显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆