$location.path('/page1').search({id: $scope.id,name:$scope.name});
带参数跳转页面,在新的页面通过$routeParams接收参数
$scope.id=$routeParams.newNo;
$scope.name=$routeParams.lastBill;
另附官网中关于$location的api文档:https://code.angularjs.org/1.2.2/docs/api/ng.$location
$location.path('/page1').search({id: $scope.id,name:$scope.name});
带参数跳转页面,在新的页面通过$routeParams接收参数
$scope.id=$routeParams.newNo;
$scope.name=$routeParams.lastBill;
另附官网中关于$location的api文档:https://code.angularjs.org/1.2.2/docs/api/ng.$location
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。