vue-open-link
v0.2.0
Published
Allow open link in new tab
Downloads
15
Readme
vue-open-link
A custom directive which allow users open link in a new tab.
Usage
npm install vue-open-link --save
# or use yarn
yarn add vue-open-link
<!--
use String
-->
<button
v-open="'#/test'"
>
test
</button>
<!--
use String
-->
<button
v-open="{path: 'test'}"
>
test
</button>
If you want to use String to redirect, you can simply use router.resolve() to get the href