ng2-swipeable-card
ng2-swipeable-card copied to clipboard
Swipe does not work
Hey Folks,
I implemented exactly the code given in the description. It works exactly 1 time, the next cards is not shown after the 1st card is swiped.
No console error, nothing.
I just recognized that the visibility property does not change for the next coming card...
@stefanstelzer,
Could me pin the repo so I can take a look at?
@stefanstelzer This was happened for me also can you help me to solve this problem, below is my code
{{ card.content }}
<swipeable-card-actions>
<button swipeable-button (click)="like(card)">LIKE</button>
<button swipeable-button (click)="share(card)">SHARE</button>
</swipeable-card-actions>
export class AppComponent { title = 'app';
cards = [ { name: 'Helen', image: 'http://semantic-ui.com/images/avatar/large/helen.jpg', visible: true, content: 'Helen: . Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat' }, { name: 'Elliot', image: 'http://semantic-ui.com/images/avatar/large/elliot.jpg', visible: false, content: 'Elliot: Lorem ipsum dolor sit amet, consectetur 3adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.' }, { name: 'Matt', image: 'http://semantic-ui.com/images/avatar/large/matt.jpg', visible: false, content: 'Matt: Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.' } ];
// click like
action
like(card): void {}
// click share
action
share(card): void {}
}