-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How Do I Watch The Routes Added By Method addroutes() ? #1955
Comments
You don't need to need to watch them as they never change. Please, next time consider using the forum, the Discord server or StackOverflow for questions first. But feel free to come back and open an issue if it turns out to be a bug 🙂 |
Hi @posva, it looks like you are closing all the different issues related to this problem. Possibly, it is due to the formulation of the issue. I think that the issue should be reformulated as a feature request because we need a convenient way to get all the routes (both those passed as options and those added at runtime with addRoutes API). At present, to verify if there is a particular route, I have to keep an array of my added routes in the store (and eventually merge it with the one in options). Since the information about all the routes is already present somewhere (because it is used by the router), I think that many of us just would like a convenient API to get it. |
I think that the router needs to handle all the routes, including the addRoutes routes. |
What problem does this feature solve?
when l add routes by addRoutes , I can not watch them by $router.options.routes, so where can I
get their value? Thank you for answer!
What does the proposed API look like?
It is simple but convenient!
The text was updated successfully, but these errors were encountered: