This lesson is for members. Join us?
Subscribe now and get immediate access to this course, 30 more and all future Vue.js courses!
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.