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

[Question] Include a vue plugin? #76

Open
Radiergummi opened this issue Oct 16, 2017 · 0 comments
Open

[Question] Include a vue plugin? #76

Radiergummi opened this issue Oct 16, 2017 · 0 comments

Comments

@Radiergummi
Copy link

This is not an issue per se, but since Laravel includes Vue by default, it would be nice to have a laroute Vue plugin available in this package. I have just written one and wanted to ask whether you are interested in including it as an additional template, defaulting to the current laroute.js implementation. You can find the gist right here: https://gist.github.com/Radiergummi/08152f9e6e1f87b57d7acc017a33fdd9

Currently, it does the following things:

  • Add a new $router property to Vue instances that has the methods route() , action(), url(), link_to() , link_to_route(), link_to_action() and match() available
  • Add a new router-link component to Vue that is available globally and works much like the one from vue-router

I'm still working on it for my current project, but if you're interested in adding it to Laroute, I'd be happy to share the source once it's finished and tested.

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