ionic-ion-tinder-cards - Work in progress

  •        0

Include `ionic.tdcards.js` after the rest of your Ionic and Angular includes. Then use the following AngularJS directives:```html Card content here ```To add new cards dynamically, just add them to the cards array:```javascript$scope.cards = [ { // card 1 }, { // card 2 }];$scope.cardDestroyed = function(index) { $scope.cards.splice(index, 1);};$scope.cardSwiped = function(index) { var newCard = // new card data $scope.cards.push(newCard);};```

https://github.com/driftyco/ionic-ion-tinder-cards

Tags
Implementation
License
Platform

   

comments powered by Disqus


Related Projects