gpt4 book ai didi

javascript - 从 ngCordova 切换到 Ionic-Native 后 AngularJS 应用程序中的导航问题

转载 作者:行者123 更新时间:2023-11-28 03:26:32 25 4
gpt4 key购买 nike

我正在将我的混合移动应用程序从 ngCordova 更新为 Ionic Native。我的应用程序使用最新版本的 AngularJS 和最新版本的 Ionic v1。

我遇到的问题是“按钮”的 ionic 列表。这是其中之一:

<ion-item nav-clear menu-close href="#/about" class="menu nav-menu" ng-class="{active: $state.is('about')}>
<div class="item-text-wrap">
{{'NAV_ABOUT' | translate}}
</div>
</ion-item>

当我使用 ngCordova 时,此按钮只会重定向到“关于” View (#/about)。现在,它只是导航到空白屏幕。没有错误。

网址列在我的 app.js 文件的 $stateProvider 中。

有谁知道这里可能出现什么问题吗?

最佳答案

事实证明我的问题出在我的用户界面路由器上。我已将其更新为新模块,因此我必须使用“ui-sref”而不是“href”来处理几乎所有内容。有关更多信息,请参阅: difference between using ui-sref and href(where to use) in ionic framework using ui-router service

关于javascript - 从 ngCordova 切换到 Ionic-Native 后 AngularJS 应用程序中的导航问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58596767/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com