Skip to content

Nested views need to be accessed differently than in v0.4.2 #3417

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

Closed
marcbachmann opened this issue Apr 29, 2017 · 2 comments
Closed

Nested views need to be accessed differently than in v0.4.2 #3417

marcbachmann opened this issue Apr 29, 2017 · 2 comments
Labels

Comments

@marcbachmann
Copy link

This is a: Bug report
My version of UI-Router is: 1.0.0-rc.1

Bug Report

Current Behavior:

Nested ui-views need to be targeted using dot notation.

e.g.

<div ui-view="toolbar">
  <div ui-view="left"></div>
  <div ui-view="right"></div>
</div>

The view with the name left is only accessible by using {views: {'toolbar.left': 'ComponentName'}}. Please see referenced plunker for a working example.

Expected Behavior:

In earlier ui-router versions the views were accessible without using the prefixed parent view.
The behavior definitely changed from v0.4.2 to v1.0.0.
I don't know whether this was an intended change, but it's something that needs documentation.

Link to Plunker that reproduces the issue:

https://plnkr.co/edit/D0zGWV4ggDY6TdZkDekU?p=preview

@marcbachmann
Copy link
Author

Looks like this was already reported in #3355
Apparently it's planned to have a fix in rc2

@stale
Copy link

stale bot commented Jan 24, 2020

This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs.

This does not mean that the issue is invalid. Valid issues
may be reopened.

Thank you for your contributions.

@stale stale bot added the stale label Jan 24, 2020
@stale stale bot closed this as completed Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant