-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Description
Version
3.0.2
Reproduction link
https://jsfiddle.net/efq2Lzom/
Steps to reproduce
I'm having unexpected behavior with nested named views where the named components are not all rendered. Also props are not being passed when using named views.
In the jsfiddle, links 3 and 4 do not behave as expected.
What is expected?
Props are passed when using named views. Components for named views should be displayed.
Link 3:
The top section should have content "Top - 5". The bottom section should display 5 on both rows.
Link 4
Both the top and bottom sections should display "5".
What is actually happening?
Props are not always passed to named components. Components for named views are not always displayed.
Link 3
The top section should render the Top component. The prop for the nested view's component should have prop passed.
Link 4
The prop from the route param should be passed to the named components.
I ran across this with a complex page layout. I have a toolbar at the top of my app (defined in the same component as the default ) and a number of routes that are nested 2-3 levels deep. I want to change the content of the toolbar based on the deepest level of route hierarchy.
I created a <router-view name="toolbar">, but I'm struggling to get content rendering and changing according to the deepest route.