1
votes

I have a list of items and want to render the item template in a modal interface.

Requirements:

  • the URL should update (and hence I should use a Route)
  • the existing list of items should still be shown in the background (hence the modal interface)

However when using a route the last used route is automatically closed.

Note that there are 6 routes which all show a list of items. Making the item route a child of all these routes would be a bit cumbersome.

So far I've read through these API docs, without finding what I'm looking for:

If you dont know the answer, but have good links to share, please do

Possible solution

  • On IRC it was suggested to simply render a modal using the render call (see the above link). However how can I change the URL in ember without it triggering a DOM update? (related question, Change the URL without triggering a DOM update)
1

1 Answers

0
votes

This is a rough example of showing a list of items and the selected item on a modal.

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

In combination with the following post i think you may achieve what you are looking for.

Ember Routing: Reusing a resource under multiple parent routes