码迷,mamicode.com
首页 > Web开发 > 详细

angular url 传参

时间:2017-06-14 21:07:48      阅读:181      评论:0      收藏:0      [点我收藏+]

标签:bsp   pre   operation   img   alt   product   rod   conf   注入   

1.路由里配置参数operation

技术分享

2.页面A跳转时带上参数

$scope.goPage = function (op) {
     $state.go("app.productConfigadd",{"operation":op});//注入$state
};

3.页面B获取参数operation的值

$stateParams.operation  //注入$stateParams获取参数operation的值

 

angular url 传参

标签:bsp   pre   operation   img   alt   product   rod   conf   注入   

原文地址:http://www.cnblogs.com/cynthia-wuqian/p/7010648.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!