Put in order · Vue.js course · Module 10: Vue Router
Dynamic Route Flow
Arrange the steps for handling a dynamic route:
Items to put in order
- Component loads data based on the parameter
- User clicks a RouterLink with a parameter
- Route definition: path: '/system/:id'
- Component reads useRoute().params.id
- Router matches the URL to the definition
You can check the correct answer by solving this task in the CodeWorlds game.