Skip to content

Dynamic URLs with v-link #3

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

Closed
frolic opened this issue May 23, 2015 · 1 comment
Closed

Dynamic URLs with v-link #3

frolic opened this issue May 23, 2015 · 1 comment

Comments

@frolic
Copy link

frolic commented May 23, 2015

I'd like to be able to use variables within the v-link directive. I tried the following to no avail:

<a v-link="/{{ next }}">go</a>
<a v-link="{{ next }}">go</a>
<a v-link="'/' + next">go</a>
<a v-link="next">go</a>

I'd create a JSFiddle to demonstrate, but the latest dev of vue and vue-router haven't been compiled/committed so that I can use them with rawgit.

@frolic
Copy link
Author

frolic commented May 23, 2015

In the meantime, I'm just using href with hashes instead:

<a href="#/{{ next }}>go</a>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant