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?
Activity
maeisdev commentedon Dec 18, 2018
+1
varnguyen commentedon Aug 14, 2019
I think this is what you need
const firstNativeElement = this.swingCards.first.getNativeElement(); this.swingStack.stack.getCard(firstNativeElement)