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

daliborgogic/nuxt-interpolation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nuxt-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

⚠️ For Nuxt 3, see here

Setup

Install the module

npm install nuxt-interpolation
# or
yarn add nuxt-interpolation

Register the module

{
  modules: [
    'nuxt-interpolation',
  ]
}

Usage

<div v-html="content" v-interpolation></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.

Topics

Resources

Stars

Watchers

Forks

Sponsor this project

 

Contributors 4

  •  
  •  
  •  
  •