yapplabs / ember-wormhole

Render a child view somewhere else in the DOM.
MIT License
284 stars 68 forks source link

Switch to {{in-element}} #114

Open sandstrom opened 4 years ago

sandstrom commented 4 years ago

Would it make sense for this addon to switch to {{in-element}})?

Perhaps this addon serves another purpose and it doesn't make sense.

mpanic commented 3 years ago

That would be nice, but it's not "yet" possible to simple switch to {{in-element}} because it doesn't accept/render ember variables. {{in-element}} can only render plan HTML syntax.

sandstrom commented 3 years ago

@mpanic Are you sure?

These two articles seems to suggest otherwise:

https://balinterdi.com/blog/using-in-element-in-ember-js/ https://dev.to/shayanypn/ember-js-in-element-feature-273l

nlfurniss commented 3 years ago

@mpanic it seems to work. Here's a demo.

What do you think about investigating any feature gaps with this code and after any fixes, merging it in to this repo and releasing a v1?

srsgores commented 1 year ago

Yeah, and should this repo not be deprecated entirely, as we can almost replace {{in-element}} 1-1 with ember-wormhole?