Using vuejs 2.5 if there is a way in router-link to set
target= '_blank'
? I tried this way:
<router-link :to="{name: 'UserProfileView', params: {id: participantUser.user_id}, target: '_blank' }" >
but failed...
Thanks!
You must to use method. Method looks something like this:
methods: {
redirectToUserView(user) {
const route = this.$router.resolve({
name: 'UserProfileView',
params: {id: participantUser.user_id},
});
window.open(route.href, '_blank');
},
}
You will add target='_blank'
like on <a>
tag
Hope is clear
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With