mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-08 04:52:25 +03:00
more clear instructions in step 1 for non-ssr users
This commit is contained in:
@@ -120,7 +120,7 @@ Use the links below - if you want a previous version, check the instructions at
|
||||
## 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:
|
||||
In order to use this plugin, you first need to pass it to `Vue.use` - if you're not rendering on the server-side, your JS entry file will suffice. If you are rendering on the server, then place it 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:**
|
||||
```js
|
||||
|
||||
Reference in New Issue
Block a user