简体   繁体   English

在模态框中嵌套路线?

[英]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? 如何获得此嵌套路由以显示在模式框中,但仍然是嵌套路由,以便URL仍使用配方ID更新? 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 这是一个例子,虽然很丑,但是css不是我的事

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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