【发布时间】:2015-12-02 02:39:48
【问题描述】:
正如您在角度ui-router 中所知道的,我们使用ui-view 将html 呈现给父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