Skip to content

Commit

Permalink
docs: update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ymmooot committed Feb 21, 2023
1 parent d8c2697 commit 31337cd
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,24 @@ Then, add plugin config to `nuxt.config.js`.
plugins: ['~/plugins/jsonld'],
```

### with nuxt-bridge

If you are using nuxt-bridge, you have to add `defineNuxtPlugin`.

```js
// plugins/jsonld.js
import Vue from 'vue';
import NuxtJsonld from 'nuxt-jsonld';

Vue.use(NuxtJsonld);

export default defineNuxtPlugin(nuxtApp => {
if (typeof NuxtJsonld.default !== 'undefined') {
nuxtApp.vueApp.use(NuxtJsonld.default)
}
})
```

## Usage

Make a jsonld method to your Vue components and return structured data object.
Expand Down

0 comments on commit 31337cd

Please sign in to comment.