nuxt-interpolation
nuxt-interpolation copied to clipboard
Nuxt.js module as directive for binding every link to catch the click event, and if it's a relative link router will push.
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
:warning: 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>