Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 782 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 782 Bytes

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