是什么在angularjs用户界面视图和离子导航视图中离子的区别 [英] What is the difference between ui-view in angularjs and ion-nav-view in ionic

查看:282
本文介绍了是什么在angularjs用户界面视图和离子导航视图中离子的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如你在角知道 UI路由器我们使用用户界面视图来渲染 HTML 母公司 HTML 。据

As you know in angular ui-router we use ui-view to render an html to parent html. According to 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': {},
  }
})

另外在离子框架,我们可以利用这一点:

Also in Ionic framework we can use this:

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

什么是性差异?

推荐答案

这是自离子框架性指令。你可以在这里找到详细的描述离子导航视图。它拥有更先进的功能,如跟踪历史,转换等等。它确实使用AngularUI路由器。

This is custom Ionic framework directive. You can find detailed description here ion-nav-view. It has more advance features like tracking history, transitions and much more. It does use AngularUI router.

这篇关于是什么在angularjs用户界面视图和离子导航视图中离子的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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