Courses
Vue Foundations Vue Fullstack Vue Enterprise
Articles
Latest Topics
More
Newsletter Sponsorship Discord About
The video for this lesson is currently being updated, please read the transcript instead.
> Lesson 35

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...

Courses
  • Vue Foundations
  • Vue Fullstack
  • Vue Enterprise
Articles
  • Latest
  • Topics
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

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

  • RSS
  • |
  • Atom