【问题标题】:What is the difference between ui-view in angularjs and ion-nav-view in ionicangularjs中的ui-view和ionic中的ion-nav-view有什么区别
【发布时间】:2015-12-02 02:39:48
【问题描述】:

正如您在角度ui-router 中所知道的,我们使用ui-viewhtml 呈现给父html。根据this

<!-- index.html -->
<body>
  <div ui-view="filters"></div>
  <div ui-view="tabledata"></div>
  <div ui-view="graph"></div>
</body>

js文件:

$stateProvider
  .state('report', {
  views: {
    'filters': { ... templates and/or controllers ... },
    'tabledata': {},
    'graph': {},
  }
})

同样在Ionic 框架中我们可以使用这个:

<ion-nav-view name="filters"></ion-nav-view>

有什么区别?

【问题讨论】:

    标签: javascript angularjs ionic-framework angular-ui-router ionic


    【解决方案1】:

    这是自定义 Ionic 框架指令。你可以在这里找到详细的描述ion-nav-view。它具有更多高级功能,例如跟踪历史记录、转换等等。它确实使用 AngularUI 路由器。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-10-11
      • 2016-07-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-03
      相关资源
      最近更新 更多