I am trying to display a modal dialog in my application and want to be able to programmatically render it to the page. My root template looks like this
{{outlet}}
{{outlet "modal"}}
Then when a user presses a button, a controller action is fired and I want to be able to call something like
App.Modal.create().appendTo("modal");
Obviously that won't work since appendTo takes a jquery selector but does anyone know of a better way to do this?
Edit:
I could also just use the appendTo method but everytime I do I get a deprecated warning cannot append to default container. I was using a ContainerView and appending that and then updating the container view but nothing worked.