大佬教程收集整理的这篇文章主要介绍了angular.js 路由及页面传参示例,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
页面传参数方法:1、$rootScope。2、(url)/user/:name/:age。
页面转换方法:1、href="#/" rel="external nofollow" rel="external nofollow" rel="external nofollow" 。2、$state.Go。3、$LOCATIOn.path。4、ui-sref
<script src="http://cdn.bootcss.com/angular-ui-router/1.0.0-beta.3/angular-ui-router.js"></script>