-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Route Mapping #1
Comments
Based on IRC discussions, vue-router will require a selector, acting as the stage for routeViews, routes and components. Potentially looking like,
Separate question regarding plugins, if something is not a Vue service ( directive, filter etc ). What is an acceptable way to expose this?
|
I think Imagine a plugin that holds a bunch of utility directives. These directives should all be exposed in some way, together with the For the case of router - I haven't made up my mind yet. I'll probably start on it this weekend and we'll see what feels right. |
No, I totally get you. Its how I approached mocking vue-import. Was just making sure as I'd imagine Router would not be a directive. Perfectly doable as you know, but feels wrong. |
I'm wondering about that too, I'm building a vue-router for my own purpose (& for learning) and was curious about which API would be the best. Currently I do:
I like @duckbox proposal though. I'm sticking on an angular-like API for now, so each update of the route dispatch |
Add tests for named children routes using parent params
moved from Vue roadmap
In terms of the vue-router. Are we mapping routes to something acting like a 'PageController' ( some Vue type/instance ) that would hold configurable child instances? Or is this like a state event to be emitted amongst all instances?
I don't know. I'm having trouble visualizing what is dictated as a 'page' or something centric to represent a container. How do you guys see this fleshing out?
The text was updated successfully, but these errors were encountered: