daliborgogic / 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.

Home Page:https://www.npmjs.com/package/nuxt-interpolation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

https://www.npmjs.com/package/nuxt-interpolation


Languages

Language:JavaScript 100.0%