Skip to content
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

Is it possible to insert a router-link element? #52

Open
Rusinas opened this issue May 30, 2024 · 2 comments
Open

Is it possible to insert a router-link element? #52

Rusinas opened this issue May 30, 2024 · 2 comments

Comments

@Rusinas
Copy link

Rusinas commented May 30, 2024

I've been wondering about this one for quite a while now. Regular links will reload the whole page, so I need to figure out a way how to insert a <router-link> element instead of a regular <a> tag. Can it be done somehow? We already can insert whole components using decorators, but what about inline elements?

@wobsoriano
Copy link
Owner

That's actually an interesting case. Let me do some experiments and I'll get back to you on this.

@zswaff
Copy link
Contributor

zswaff commented Jun 5, 2024

At Dart we're using buttons with @click="router.push(...)" to implement this functionality. I can't exactly remember the details from when we set this up but I imagine if RouterLinks had worked easily we would have used that instead.

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

3 participants