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

A little disconnect goes a long way #1

Open
MVSICA-FICTA opened this issue Apr 9, 2017 · 2 comments
Open

A little disconnect goes a long way #1

MVSICA-FICTA opened this issue Apr 9, 2017 · 2 comments

Comments

@MVSICA-FICTA
Copy link

From the readme, "It also creates a slight disconnect between your routes and your UI, as if they were two separate things."

IMO I like this disconnect in the official vue-router because the content of routes.js in the vue-router is just a module of functions, specific to routing. They are then invoked with given parameters, so they can also be customized and reused.

Maybe there is such a thing as component/tunnel-vision? In contrast, keeping logic out of components scales better and allows for more compositional possiblities.

@jackmellis
Copy link

I've been using both vue-router and vue-component-router in different projects and i have to say I really like this continuation of "everything is a component".

This is basically a Vue implementation of react-router 4 and it achieved just that!

If you like to keep your router wholey separate from your components, then stick with the official router library.

I think this just provides a really nice alternative approach. One that I'm sure many people will appreciate!

@jez9999
Copy link

jez9999 commented Sep 8, 2022

I far prefer the React Router approach. Having a Route element deciding whether a child component gets rendered is pretty much a logical extension of a v-if on an element, determining whether that element gets rendered based on data. It's a real shame this style of routing isn't an option in the official vue-router. I'm not sure of the quality of this project because it's not "official". 😄

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