angular url 传参

1.路由里配置参数operation

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

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

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

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

 

posted @ 2017-06-14 19:40  Cynthia娆墨旧染  阅读(577)  评论(2编辑  收藏  举报