Skip to content

Instantly share code, notes, and snippets.

Last active August 27, 2016 15:02
What would you like to do?
<script src=""></script>
<div id="app">
<h1>Hello App!</h1>
<router-link to="/foo">foo</router-link>
<router-link to="/bar">bar</router-link>
var Foo = Vue.extend({
template: '<p>This is foo!</p>'
var Bar = Vue.extend({
template: '<p>This is bar!</p>'
var router = new VueRouter({
mode: 'history',
routes: [
{ path: '/foo' ,component:Foo},
{ path: '/bar' ,component:Bar}
new Vue({
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment