-
-
Notifications
You must be signed in to change notification settings - Fork 5k
[feature] Passing an additional parameter not to be used in the URL #444
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
Comments
Alias can be a solution for your example. |
Technically any parameter must be passed inside url. If you do want to pass such 'invisible' parameter, use props. |
What @fnlctrl said: what you are trying to "pass along" is not a URL param, but rather application state. A URL param is by definition part of the URL. You are actually trying to do two things: 1. navigate to the route 2. mutate the application state (pageType). |
Thank you guys.. I really couldn't see a way around the problem with out I will give the props a go and see how I fair with it and take this across Thanks for the replies.
|
I'm trying to call a dynamic route and I have this working really well but what i really need is to be able to pass an extra parameter to the template so that I can use that to specify a page type
for example:
v-link="{ path: "pagename" , params : (pageType : "page"}
is this possible?
I've done a work around using named routes but this is not good for me as I don't want the name of the route appearing in the URL I only want the page name.
The text was updated successfully, but these errors were encountered: