You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to use this neat addon in an addon. But what I found is that the consuming app needs to manually add a {{from-elsewhere}} into application.hbs. Addons using ember-wormhole often are able to use the content-for hook hook to drop a div into the body. Would you know a way for ember-elsewhere to achieve roughly that same feature?
The text was updated successfully, but these errors were encountered:
I have gone down the path you describe (with early versions of liquid-modal) and it led to fragility and breakage. Overall I think it's positive that users have complete control over their own DOM via their templates. Adding one line of code to application.hbs doesn't seem like a bad cost to avoid creating a new kind of magic for making DOM appear from nowhere.
But for people who really want this capability, I think it could be a separate complementary add-on. One that specifically exists for getting a component into application.hbs magically. That would compose nicely with from-elsewhere.
interesting, in our case we have client websites that inject our ember app with certain possible "bindings" that would be on the customer page with our app... e.g. <div class="my-binding">. I'm wondering if I could automatically create {{from-elsewhere}} inside each binding with same name or make it into a from-elsewhere itself? basically dynamically rendered from-elsewhere
I'd like to use this neat addon in an addon. But what I found is that the consuming app needs to manually add a
{{from-elsewhere}}
intoapplication.hbs
. Addons using ember-wormhole often are able to use thecontent-for
hook hook to drop a div into the body. Would you know a way for ember-elsewhere to achieve roughly that same feature?The text was updated successfully, but these errors were encountered: