Skip to content

Commit

Permalink
Merge pull request #31 from mrleblanc101/patch-1
Browse files Browse the repository at this point in the history
Link to nuxt3 version
  • Loading branch information
daliborgogic authored Oct 9, 2023
2 parents 1b17b1a + e61fb2c commit 8ac59e8
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,31 @@
# interpolation
# nuxt-interpolation

> [Nuxt.js](https://github.com/nuxt/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](https://github.com/daliborgogic/interpolation)
## Setup

- Add ```nuxt-interpolation``` as dependency
- Add ```nuxt-interpolation``` to modules section of ```nuxt.config.js```
### Install the module
```
npm install nuxt-interpolation
# or
yarn add nuxt-interpolation
```

### Register the module
```javascript
{
modules: [
['nuxt-interpolation']
'nuxt-interpolation',
]
}
```

## Usage

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

## License
Expand Down

0 comments on commit 8ac59e8

Please sign in to comment.