The Vue.js Master Class
Sponsored by Storyblok
Plans from $25/month

This lesson is for members. Join us?

Subscribe now to get instant access to this course, plus a full library of Vue.js courses tailored to the plan you choose.

🚧 NOTICE: You are watching a Vue.js 2 lesson

Use Route Params

It’s important that our ThreadCreate component is aware of the actual forum the thread should be created in. Right now, the component only knows about the location, if we use the button to create a new thread, thus, if we hit refresh - everything will break!

In this vue.js tutorial, we’ll use the route parameters to make the component independent.