1.路由里配置参数operation
2.页面A跳转时带上参数
$scope.goPage = function (op) { $state.go("app.productConfigadd",{"operation":op});//注入$state };
3.页面B获取参数operation的值
$stateParams.operation //注入$stateParams获取参数operation的值
以上就是angular url 传参实例详解的详细内容,更多请关注php中文网其它相关文章!
Copyright 2014-2024 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号