Skip to content

daliborgogic/interpolation

Repository files navigation

nuxt3-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 2, see here

Setup

Install the module

npm install nuxt3-interpolation
# or
yarn add nuxt3-interpolation
{
  buildModules: [
    // Error: exports is not defined in ES module scope
    // 'nuxt3-interpolation' 
    // Fix
    '~/node_modules/nuxt3-interpolation/index.cjs'
  ]
}

Usage

<div v-html="html" v-interpolation />

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published