我想在newtab中打开一个状态,但无法实现它。我这样做使用$状态,去功能。
我也尝试了下面的代码,它是成功的,并在newtab中打开我的url,但浏览器阻止在新选项卡中打开新的url。
openurlnw = $state.href('home.forward',{"url":$scope.platforms[0].url,"name":$scope.platforms[0].name,"dish_name":$scope.userSearchedDish});
window.open(openurlnw,'_blank');
我想在新标签中打开我的状态而不让浏览器阻止它。
你有一个错误信息,从您的浏览器时,它会阻止请求? – DevMoutarde
http://stackoverflow.com/questions/23516289/angularjs-state-open-link-in-new-tab –
没有错误,它只是显示浏览器阻止此网站打开新的弹出窗口 –