简体   繁体   中英

Nested route in a modal box?

How can I get this nested route to display in a modal box but still be a nested route so that the URL still updates with the ID of the recipe? I've been tinkering with it for some time and can't seem to wrap my mind around how to achieve this.

The nested route/path can only work from the application down. That means there needs to be a direct path from your deepest path to the application. So if your modal is dynamic it won't work. If it's just part of the path, then it will work.

Here's an example, albeit ugly, but css isn't my thing

http://emberjs.jsbin.com/iROGiqa/1/edit

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM