草庐IT

selectedStudents

全部标签

javascript - Angular uiRouter 在新窗口或带有 stateParams 的选项卡中打开状态

我想做的是在新标签页或新窗口中关注:$state.go('studentsReport',{type:$scope.report.type,//stringselectedStudents:$scope.selectedStudents//arrayofstrings});如果我这样做了:varlink=$state.href('studentsReport',{type:$scope.report.type,selectedStudents:$scope.selectedStudents});window.open(link,'_blank');`我会丢失参数。最好的问候,马塞尔