Skip to content

RezaHaidari/router-link-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

router-link-helper

vue.js router-link helper

NPM

Installation

NPM

$ npm install --save router-link-helper or $ yarn add --save router-link-helper

Usage

  import Vue from 'vue'

  const RouterLinkHelper = require('router-link-helper');
  Vue.use(RouterLinkHelper)

  // or register with custom router-link name
  Vue.use(RouterLinkHelper,{
    name:'my-link'
  })
  <router-link-helper to="/bar" :_blank="['desktop','tablet']" > foo </router-link-helper>

  // or custom link

  <my-link to="/bar" :_blank="['desktop','tablet']" > foo </my-link>

Props

you can use these props for router-link-helper:

Prop Name Default Value Type Description Required
_blank none array definition device name you want target "_blank" : desktop,tablet,mobile No

Options

you can use these props for router-link-helper:

Prop Name Default Value Type Description Required
name router-link-helper string custom router link name No

Development

To customize and develop the project you could use following npm commands:

To bundle and minify JS

  npm run prod

License

router-link-helper is a free and open project developed and maintained by Reza Haidari at INB Co., published under MIT license.

About

vue.js router-link hepler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published