Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ionic framework 在导航视图内部嵌套导航视图_Ionic Framework_Angular Ui Router - Fatal编程技术网

Ionic framework 在导航视图内部嵌套导航视图

Ionic framework 在导航视图内部嵌套导航视图,ionic-framework,angular-ui-router,Ionic Framework,Angular Ui Router,伙计们,我试图在ion导航视图中有一个模板,但州政府不承认它。 我想要一个 <ion-nav-view> <ion-nav-view name="menuContent"> <nav-view name="historyContent"> </nav-view> </ion-nav-view </ion-nav-view 它没有加载template browser.html,我是不是遗漏了什么错误?

伙计们,我试图在ion导航视图中有一个模板,但州政府不承认它。 我想要一个

<ion-nav-view>
   <ion-nav-view name="menuContent">
      <nav-view name="historyContent">
      </nav-view>
   </ion-nav-view
</ion-nav-view

它没有加载template browser.html,我是不是遗漏了什么错误?

好的,伙计们,我试图修改代码,我发现如果我不得不修改,那么我会在“menuContent”视图中加载模板。然而,我必须创建一个新的状态,以实现看起来像这样的目标

  .state('app.serviceHistory', {
      url: '/serviceHistory',
      views: {
        'menuContent': {
          templateUrl: 'templates/serviceHistory.html',
          controller:'serviceHistoryCtrl'
        }
      }
    })
   .state('app.serviceHistory.singleHistory', {
      url: '/singleHistory',
      views: {
        'serviceView': {
          templateUrl: 'templates/browse.html'

        }
      }
    })
景色

<ion-nav-view>
   <ion-nav-view name="menuContent">

      <ui-view name="historyContent">
      </ui-view>
   </ion-nav-view
</ion-nav-view


serviceView在哪里?
<ion-nav-view>
   <ion-nav-view name="menuContent">

      <ui-view name="historyContent">
      </ui-view>
   </ion-nav-view
</ion-nav-view