Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this.swingCards.first.getCard() is null #42

Open
fobaz opened this issue Nov 22, 2017 · 2 comments
Open

this.swingCards.first.getCard() is null #42

fobaz opened this issue Nov 22, 2017 · 2 comments

Comments

@fobaz
Copy link

fobaz commented Nov 22, 2017

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?

@maeisdev
Copy link

+1

@varnguyen
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants