Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 677 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 677 Bytes

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