-
Notifications
You must be signed in to change notification settings - Fork 174
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
It is not possible to have a root node with empty path segment and a view #299
It is not possible to have a root node with empty path segment and a view #299
Conversation
This reverts commit ec5f47c.
…ing or a slash - fix.
…h-empty-path-segment-and-a-view
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this change browser doesn't crash but I get a popup with an error Could not map the exact target node for the requested route
. It happens on each route, not only this main one.
OK, maybe the navigation structure you provide is not as expected. This only works if you provide the nodes not as an array but as a single root node object (with children) where pathSegment is set to empty string. Maybe you provide an array (as we always had it like that in our examples, but now you can actually specify the tree from the root node (which is only one and that is why it may not be an array)). |
@pekura You are right. Unfortunately I need an additional node in the top-navigation, so I need to have two main nodes, and because of that it won't work for me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created this patch diff-proposal.zip and when navigating to http://localhost:4200
this is what I get
What am I testing wrongly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after last changes
…view (SAP#299) It is not possible to have a root node with empty path segment and a view
It's not possible to set the root node's path segment as an empty string or a slash - fix.