2
0
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:
Declan de Wet
2016-10-31 03:18:42 +02:00
parent 69e0c365b8
commit 8f82e1306b
+2
View File
@@ -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:**