-
Notifications
You must be signed in to change notification settings - Fork 3k
Dynamic ui-view name no longer working in v0.2.8 #825
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
Comments
This was never a feature. The fact that it might have happened to work was completely incidental. Probably a bad idea anyway. |
Thanks for your answer, Nate. So you are saying that it would be better to write one ui-view for every "page", each with the same class attribute, and everything else duplicated except for the name? I think that being able to use ng-repeat on a ui-view is a nice feature. Would it be OK if I submitted a PR if I can get it working? |
You'd have to open an RFC (request for conversation first) so that discussion could take place. The RFC should list various use cases and propose any API changes etc. My guess is that you may be doing a bad practice though. I'd recommend taking your broader use case over to stack overflow to get some suggestions on how other may implement the solution, don't mention using an ng-repeat and see what kind of answers you get. |
@gabrielmaldi did you find a solution for this? I just came across the same thing. I understand it wasn't a feature, but it did work reliably. |
@nuclearghost no, I didn't. Actually, I wanted to upgrade from I guess that when the time comes I'll try to write a directive that creates the On a side note: thanks for this great project, guys! I wouldn't be able to write a big scale |
I was doing the same going from I actually created a post on SO with a plnkr http://stackoverflow.com/questions/21891335/angular-ui-bootstrap-tabs-not-rendering-ui-view Thanks to everyone on the team for the great work! |
This is fixed in #858 @nuclearghost until a new version of ui-router is released, you can grab http://run.plnkr.co/plunks/Dy5NHsq5eyaJPOJirsP6/angular-ui-router.js which is a version @meenie assembled for the plunkers on that issue. |
In v0.2.0, I could do:
But this doesn't work anymore in v0.2.8.
I investigated a little and found that the name is assigned in lines 2211-2218 (looking at https://github.com/angular-ui/ui-router/blob/master/release/angular-ui-router.js):
I tried using $interpolate there, and the name is interpolated correctly. However, the ui-views come up empty. If I remove the ng-repeat and add each ui-view separately with its respective name, everything works fine.
The text was updated successfully, but these errors were encountered: