From 90abc178225f59e21c29e8b67560f6b1e90d3b9d Mon Sep 17 00:00:00 2001 From: pimlie Date: Sun, 6 Jun 2021 17:24:57 +0200 Subject: [PATCH] chore: update readme for options api support --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 04aeeb2..b3ab117 100644 --- a/README.md +++ b/README.md @@ -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