【问题标题】:IONIC back title work in browser but not after build android applicationIONIC 后标题在浏览器中工作,但在构建 android 应用程序后不工作
【发布时间】:2015-01-18 13:15:55
【问题描述】:

我使用 ionic 和 jboss 开发人员工作室制作了简单的应用程序。完成后,我在开发过程中在浏览器中运行应用程序,我使用 ionic build android 使用命令提示符构建应用程序,我现在安装在手机中,现在问题出现在顶部导航栏中,后退按钮显示,但后退名称不显示,标题向左一边。

<body ng-app="starter">
    <!--
      The nav bar that will be updated as we navigate between views.
    -->
    <ion-nav-bar class="bar-stable">
      <ion-nav-back-button>
      </ion-nav-back-button>
    </ion-nav-bar>
    <!--
      The views will be rendered in the <ion-nav-view> directive below
      Templates are in the /templates folder (but you could also
      have templates inline in this html file if you'd like).
    -->
    <ion-nav-view></ion-nav-view>
  </body>

【问题讨论】:

    标签: cordova ionic-framework


    【解决方案1】:

    我刚遇到和你一样的问题。

    添加

    $ionicConfigProvider.backButton.previousTitleText(true); 
    

    到 app.config 部分来解决这个问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-08-14
      • 2015-08-05
      • 2013-10-15
      相关资源
      最近更新 更多