2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-20 08:40:34 +03:00

chore: update readme for options api support

This commit is contained in:
pimlie
2021-06-06 17:24:57 +02:00
parent 9dad4e607a
commit 90abc17822
+16
View File
@@ -169,6 +169,22 @@ export function renderPage() {
}
```
### Use Options API
```js
// Install the plugin first
import { plugin as vueMetaPlugin } from 'vue-meta'
app.use(vueMetaPlugin)
// then in your Component.vue
export default {
metaInfo() {
return {
title: 'My Options API title',
}
}
}
```
## Old versions
Click [here](https://github.com/nuxt/vue-meta/tree/master) if you are looking for the old v2 readme