You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What if the Ember Router introduced a new type of "sub-leaf" (could be called e.g. variation), that could be encoded as my/path#variation-{name} (for example)?
With routable variations we could, for example, show modals (i.e. routable modals) or toggle tabs on a page. Such route variations would share the modal hook etc (it would not re-run) and would be accessible from templates and controllers.
There is some precedent for this in the :target CSS selector, which can be used to show/hide various elements. For example, it's quite common to use that selector to toggle various tabs on a page.
I'm closing this due to inactivity. This doesn't mean that the idea presented here is invalid, but that, unfortunately, nobody has taken the effort to spearhead it and bring it to completion. Please feel free to advocate for it if you believe that this is still worth pursuing. Thanks!
For reference, things along these lines are being discussed in #709.
I still think it would be a nice idea to explore, for example for modals. But I also agree that this needs to be spearheaded by someone, and right now that won't be me. So fine with closing.
What if the Ember Router introduced a new type of "sub-leaf" (could be called e.g. variation), that could be encoded as
my/path#variation-{name}
(for example)?With routable variations we could, for example, show modals (i.e. routable modals) or toggle tabs on a page. Such route variations would share the modal hook etc (it would not re-run) and would be accessible from templates and controllers.
There is some precedent for this in the
:target
CSS selector, which can be used to show/hide various elements. For example, it's quite common to use that selector to toggle various tabs on a page.https://css-tricks.com/on-target/
Admittedly there is some overlap with query-params here, don't know how to think about that.
Thoughts? Good, bad idea?
The text was updated successfully, but these errors were encountered: