Pass the parameter through query
Pass the parameter through params
The query and params
Summary of the differences:
- Params parameters must be passed in named route mode.
- Params pass parameter, will not display in the address bar, will be saved in memory, refresh will be lost, can be used with local storage;
- Query parameters are displayed in the address bar and will not be lost.