Articles
Latest
More
Newsletter Sponsorship Discord About
Sign up for our Newsletter
The video for this lesson is currently being updated, please read the transcript instead.
Vue Foundations > Lesson 79

Passing ID to movie route

In the previous lesson we created the Movie page component which gets displayed after a user clicks an item in the movie list.

However, it will also display if a user navigates directly to the mapped route. How do we display the correct movie info based on the route?

Movie page URLs

Each of our movies can be identified by a unique ID e.g. tt3904432. Once we have that on the movie page, it's easy enough display the movie info by getting the correct data from the API.


Back to course page

Click to load comments...

Articles
  • Latest
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

Vue.js Developers © 2021. View our privacy policy .

  • RSS
  • |
  • Atom