Smashing Magazine Practical Vue.js Workshop: Week 2

Homework for Vue Router

  • On App.vue, replace Episodes with router view and add links to navbar
  • Add a dynamic route for a single Character view
  • Create routes for Episodes and Characters components
  • Implement one global router guard of your choice
  • Handle 404s gracefully
  • Make sure to follow best practices (named routes, lazy-loading components etc.)

Project setup

yarn install

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build