Vue.js tutorial: Using props for accessing URL parameters within components with Vue Router

Vue.js tutorial: Using props for accessing URL parameters within components with Vue Router to make cleaner, DRYer code.

When building an app with Vue.js, components and props go hand-in-hand when used within a view. Using props with Vue router and URL parameters helps make your components easier to understand and a lot more reusable.

This quick walkthrough shows how you can replace any URL parameters in your components with props and how to pass them through from vue router.

There is a slight error with the code at the end of the video - watch the next one for the solution!

Visit original website

View this post on Github