vue-router
vue-router copied to clipboard
🚦 The official router for Vue 2
### Version 3.5.1 ### Reproduction link [https://github.com/klwfwdk/addroute-issue](https://github.com/klwfwdk/addroute-issue) ### Steps to reproduce 1.click to call router.addRoute() to add a new router named 'About' witch has the same name attribute with a...
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
Improves #3709.
### What problem does this feature solve? The matcher implementation always use path-to-regex lib. It is too much for static paths, where it is possible to just compare strings. Also,...
### What problem does this feature solve? We already have prop `active-class` that will be appended to the element when the route is active. But what if that we need...
This is a draft implementation with some new ideas. * Static paths don't need regex match for most cases. * Match don't have to be always linear, it is possible...
When navigating to a nested route, we do not discard the optional params for the parents to ensure that params are not lost.
This PR adds an example of using Azure Static Web Apps with router in history mode
fix: addRoute is not work when there is already route with same name. replaced existing route in addRoute and show warning msg
According to https://github.com/vuejs/vue-router/blob/dev/examples/scroll-behavior/app.js#L21 history mode is a must (and in recent Vue CLI with vue-router in hash mode custom scrollBahavior doesn't work)