Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Aurelia Shadow DOM slots (Blog)
<require from='./info-card.html'> <!-- import the info-card component -->
<info-card>
<span slot="header">
<h1>${card1Header}</h1>
</span>
<span slot="body">
<span>${card1Body}</span>
</span>
</info-card>
<info-card>
<span slot="header">
<h1>${card2Header}</h1>
</span>
<span slot="body">
<span>${card2Body}</span>
</span>
</info-card>
<info-card>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment