Skip to content

Instantly share code, notes, and snippets.

@tygerbytes
Created December 11, 2018 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tygerbytes/df7c59070b2e73815e0b5036a163b19e to your computer and use it in GitHub Desktop.
Save tygerbytes/df7c59070b2e73815e0b5036a163b19e to your computer and use it in GitHub Desktop.
import Vue from 'vue';
import Router from 'vue-router';
import RunbyPace from '@/components/RunbyPace.vue';
import TargetPace from '@/components/TargetPace.vue';
import About from '@/components/About.vue';
Vue.use(Router);
export default new Router({
mode: 'history',
routes: [{
path: '/',
name: 'Home',
component: RunbyPace,
}, {
path: '/targetPace/:fiveKmRaceTime&:runTypeCode',
name: 'targetPace',
component: TargetPace,
props: true,
}, {
path: '/about',
name: 'About',
component: About,
}],
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment