angular2-swing icon indicating copy to clipboard operation
angular2-swing copied to clipboard

this.swingCards.first.getCard() is null

Open fobaz opened this issue 7 years ago • 2 comments

Hi, when using example code, I try to get the first or last card from stack, but it's null. Any ideas?

this.swingCards.first.getCard()

The swingCards.first is a SwingCardComponent with a valid elementRef and etc. Any ideas?

fobaz avatar Nov 22 '17 19:11 fobaz

+1

maeisdev avatar Dec 18 '18 14:12 maeisdev

Hi, when using example code, I try to get the first or last card from stack, but it's null. Any ideas?

this.swingCards.first.getCard()

The swingCards.first is a SwingCardComponent with a valid elementRef and etc. Any ideas?

I think this is what you need const firstNativeElement = this.swingCards.first.getNativeElement(); this.swingStack.stack.getCard(firstNativeElement)

varnguyen avatar Aug 14 '19 05:08 varnguyen