Fill a named view in an ancestor component? #2052
Replies: 2 comments 12 replies
-
I can't visualize what you mean. What is the code you are writing with Vue Router. Maybe an example of ui-router too? |
Beta Was this translation helpful? Give feedback.
12 replies
-
I posted on github the plugin I wrote to enhance Vue Router (and to ease my life when porting an app from AngularJS/ui-router to Vue). It can be found here. From the README: With vue3-router-ex, you can enhance a route definition to:
vue3-router-ex also ensures that component props (the ones you get with
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
With this hierarchy of routes A <- B <- C. Component assigned to route A has a named view in it.
When defining route C, it seems that a component can't be set to the named view defined in A. B could do it, but not C.
Moreover, if B sets a component for a named view in A, C can not override the component for the same view.
I am coming from angularjs/ui-router and such a thing was possible.
Any reason why? It would be very useful. Any workaround?
Repro is here
Beta Was this translation helpful? Give feedback.
All reactions