Skip to content

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

Open

Description

@fobaz

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

  1. maeisdev commented on Dec 18, 2018

    @maeisdev

    +1

  2. varnguyen commented on Aug 14, 2019

    @varnguyen

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions