vuejs/router

Props not working with vue-router

Faryyaz opened this issue · 2 comments

Reproduction

https://codesandbox.io/p/sandbox/vue-router-forked-5xd2tn?file=%2Fsrc%2Fmain.js%3A15%2C34-16%2C4

Steps to reproduce the bug

  1. Open the codesandbox link
  2. Click on the link Go on the page detail

Expected behavior

The id param should be displayed. Even though it has not been defined in the router config:

path: "/detail/"

Actual behavior

The id param is undefined in console log and is not displayed on the page.

Additional information

No response

Duplicate of #1527