ionic的学习-02路由中的几个参数

Part1  路由中的几个参数

第一步:看几个参数的位置

①ionic中是通过<ion-nav-view></ion-nav-view>实现不同模板渲染跳转的。

②ionic中的<ion-nav-view></ion-nav-view>中的name属性对应位置关系

===================华丽丽的分割线===================

第二步:路由跳转的三种方式

①$state.go(url)方式,括号里的参数为需要跳转的url地址

attention:不要忘记在controller中注入$state

②ui-sref=""方式

③<a href=""></a>中的href属性跳转

原文地址:https://www.cnblogs.com/hope-markup/p/6602932.html