A dynamic route contains a variable parameter in its path, written with a colon, for example /produits/:id. The component reads the value via useRoute().params. It allows a single component for an infinite number of similar pages. Query parameters (?page=2) are read with route.query.
Example
{ path: '/produits/:id', component: Produit }
const route = useRoute()
route.params.id