angular.js - $state.go jumps to a new tab
PHP中文网
PHP中文网 2017-05-15 16:56:52
0
1
619

How to replace the url routing path defined by

with

This form jumps to a new tab

PHP中文网
PHP中文网

认证0级讲师

reply all(1)
Ty80

Two ways, one is directly in JavaScript code:

vm.url = 'hatches.roadshows.create';
vm.urlHref = $state.href(vm.url);
window.open(mv.urlHref);

The second one is directly in html:

<a ui-sref="hatches.roadshow.create" target="_black">New Window State Go Link</a>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template