Skip to content

Instantly share code, notes, and snippets.

@freshcutdevelopment
Created September 6, 2017 10:29
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save freshcutdevelopment/8e51168352fef773f7ff94ed33bea97f to your computer and use it in GitHub Desktop.
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