Port to nuxt 3/vue 3 of nuxt-interpolation module.
Which is a:
Nuxt 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.
- Add
@prototyp-stockholm/nuxt-interpolationas dependency - Add
@prototyp-stockholm/nuxt-interpolationto modules section ofnuxt.config.js
{
modules: [
['@prototyp-stockholm/nuxt-interpolation']
]
}<div v-interpolation v-html="content"></div>- Run
npm run dev:prepareto generate type stubs. - Use
npm run devto start playground in development mode.