mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-10 19:22:26 +03:00
add note that calling Vue.use is not required if Vue is available as a global
This commit is contained in:
@@ -40,6 +40,8 @@ $ yarn add vue-meta
|
||||
# Usage
|
||||
|
||||
### Step 1: Preparing the plugin
|
||||
> This step is optional if you don't need SSR and `Vue` is available as a global variable. `vue-meta` will install itself in this case.
|
||||
|
||||
In order to use this plugin, you first need to pass it to `Vue.use` in a file that runs both on the server and on the client before your root instance is mounted. If you're using [`vue-router`](https://github.com/vuejs/vue-router), then your main `router.js` file is a good place:
|
||||
|
||||
**router.js:**
|
||||
|
||||
Reference in New Issue
Block a user