0.2.0 • Published 6 years ago

vue-open-link v0.2.0

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

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

0.2.0

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.1

6 years ago