Skip to content

Commit

Permalink
Added Vue.use(VueRouter) (#493)
Browse files Browse the repository at this point in the history
Not sure if this is omitted by preference. Thought I'd suggest adding it. I think it's helpful even though Vue will notify you if you do not load the plugin.
  • Loading branch information
marktinsley authored and yyx990803 committed May 10, 2016
1 parent 4148e2e commit cad7dcb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/en/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ Creating a Single-page Application with Vue.js + vue-router is dead simple. With
### JavaScript

``` js
// Load the plugin
Vue.use(VueRouter)

// Define some components
var Foo = Vue.extend({
template: '<p>This is foo!</p>'
Expand Down

0 comments on commit cad7dcb

Please sign in to comment.