Skip to content

Stop the timer when it reaches 0 #2

Open

Description

@dexterionut

When the timer reaches zero, it keeps triggering the zeroTrigger event instead of emitting it one time. You forgot to clear the timer when it reaches 0.
I don't know how to create a pull request so i will write here what change is necessary for this:
In countdown-timer.component.ts, inside the if that starts on line 53 you should call this.stopTimer() after emitting.

Activity

  1. NomNomSu commented on Aug 21, 2018

    @NomNomSu

    +1 to this as it needs fixing.

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