Skip to content

Nuxt.js module as directive for binding every link to catch the click event, and if it's a relative link router will push.

Notifications You must be signed in to change notification settings

vettndr/nuxt-interpolation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

interpolation

Nuxt.js module as directive for binding every link to catch the click event, and if it's a relative link router will push. For improved security rel="noopener" will be added automatically if target is _blank

Setup

  • Add nuxt-interpolation as dependency
  • Add nuxt-interpolation to modules section of nuxt.config.js
{
  modules: [
    ['nuxt-interpolation']
  ]
}

Usage

<div v-interpolation v-html="content"></div>

License

MIT

About

Nuxt.js module as directive for binding every link to catch the click event, and if it's a relative link router will push.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%