ng2-swipeable-card icon indicating copy to clipboard operation
ng2-swipeable-card copied to clipboard

Swipe does not work

Open stefanstelzer opened this issue 8 years ago • 2 comments

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 avatar Jan 25 '17 14:01 stefanstelzer

@stefanstelzer,

Could me pin the repo so I can take a look at?

JayKan avatar Jan 25 '17 17:01 JayKan

@stefanstelzer This was happened for me also can you help me to solve this problem, below is my code

{{card.name}} {{ idx }}

{{ 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 {}

}

Kishoremt avatar Mar 14 '18 14:03 Kishoremt