You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/installation.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,14 @@ Vue.use(VueRouter)
32
32
33
33
You don't need to do this when using global script tags.
34
34
35
+
## Vue CLI
36
+
37
+
If you have a project using [Vue CLI](https://cli.vuejs.org/) you can add Vue Router as a plugin. You can let the CLI generate the code above for you as well as two sample routes. **It will also overwrite your `App.vue`** so make sure to backup up the file before running the following command inside your project:
38
+
39
+
```sh
40
+
vue add router
41
+
```
42
+
35
43
## Dev Build
36
44
37
45
You will have to clone directly from GitHub and build `vue-router` yourself if
0 commit comments