-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Append to a not empty element? #34
Comments
+1 For example, I have a mobile nav hamburger that I want to display within my wormhole destination unless there is active content in the wormhole:
so ideally when I use Maybe an option such as |
I have a similar desire, I'd like to have some "skeleton UI" that shows up in my wormhole destination until the wormhole renders, and I'd love for ember-wormhole to clear out the destination element before rendering there. Here's a reduced example: <div id="open-graph-share">
<a class="facebook">Share</a>
<a class="pinterest">Pin It</a>
<a class="twitter">Tweet</a>
</div> {{#if socialSDKsAreLoaded}}
{{#ember-wormhole to="open-graph-share"}}
<a class="facebook" {{action "share"}}>Share</a>
<a class="pinterest" {{action "pin"}}>Pin It</a>
<a class="twitter" {{action "tweet"}}>Tweet</a>
{{/ember-wormhole}}
{{/if}} I'd be perfectly happy with a |
An attempt was made to implement this but ultimately abandoned due to tricky semantics. If anyone wants to dig further, you will want to review #52 |
Looks like I can't set as wormhole endpoint an element with already some nodes inside. Why that? Is there any workaround?
Thanks.
The text was updated successfully, but these errors were encountered: