This is an extension of ...
...and is reminiscent of the cards found in the National Geographic app. No partial swiping is permitted and cards swoosh away on discard (click).
- Bower install instructions coming.
- Include 'ionic.swoosh.cards.js' and 'ionic.swoosh.cards.css' in index.html.
<div ng-if="cards.active">
<swoosh-cards spacing="30">
<swoosh-card ng-repeat="card in cards.active" on-destroy="cardDestroyed($index)">
<div ng-controller="CardCtrl">
<div class="top">
<img ng-src="{{ card.image }}" />
</div>
<div class="bottom">
<h1>{{ card.country }}</h1>
<p>{{ card.text }}</p>
<div class="discard" ng-click="discard(card)">DISCARD</div>
</div>
</div>
</swoosh-card>
</swoosh-cards>
</div>
To add new cards dynamically, just add them to the cards array:
Name | Scope | Options | Action |
---|---|---|---|
spacing |
@ | Number | Number of pixels between each card |