Skip to content

Instantly share code, notes, and snippets.

@bravo-kernel
Last active August 18, 2022 17:36
Show Gist options
  • Select an option

  • Save bravo-kernel/d5bc026f9a0152b46b5c4358bb8cd4a6 to your computer and use it in GitHub Desktop.

Select an option

Save bravo-kernel/d5bc026f9a0152b46b5c4358bb8cd4a6 to your computer and use it in GitHub Desktop.
Ember Components
{{!-- card-deck.hbs --}}
<div class="card-deck">
{{#each model as |entity|}}
<CardDeckCard @entity={{entity}} @cardType={{cardType}} />
{{/each}}
</div>
{{!-- card-deck-card --}}
<div class="card my-3">
<CardDeckCardHeader @entity={{entity}} @cardType={{cardType}} />
{{#if (eq cardType "project")}}
<CardDeckCardBodyProject @entity={{entity}} />
{{/if}}
{{#if (eq cardType "subproject")}}
<CardDeckCardBodySubproject @entity={{entity}} />
{{/if}}
<CardDeckCardFooter @entity={{entity}} />
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment