1.路由里配置参数operation
2.页面A跳转时带上参数
$scope.goPage = function (op) { $state.go("app.productConfigadd",{"operation":op});//注入$state };
3.页面B获取参数operation的值
$stateParams.operation //注入$stateParams获取参数operation的值
1.路由里配置参数operation
2.页面A跳转时带上参数
$scope.goPage = function (op) { $state.go("app.productConfigadd",{"operation":op});//注入$state };
3.页面B获取参数operation的值
$stateParams.operation //注入$stateParams获取参数operation的值
转载于:https://www.cnblogs.com/cynthia-wuqian/p/7010648.html