Hello. I’m working on a pretty standard Ember app (lots of routes, views, controllers), but I’ve come across a scenario I don’t know how to structure correctly.
I’m trying to write a little widget which encapsulates what feels to me like a “mini” Ember app all on its own. An illustrative example is a list widget which you can drill down and inspect the contents of by clicking on items. I want the user to navigate around inside of this component (drilling down into and backing out of items in this list), and I want to embed this widget as a component or subview as a small part of my larger Ember app.
Should this be a component? If so, how do I keep track of the various states of this component (whether an item is to be shown or the list), without leveraging Ember routes.
Should this be some combination of standard route / controller / view? If so, how do I keep this widget route away from the url that represents the main application’s route?