A contextual component to show a countdown timer. Uses Moment.js
- Ember.js v2.18 or above
- Ember CLI v2.13 or above
- Node.js v8 or above
ember install ember-timer
The timer
component expects a to
argument which is Moment Object.
And an optional onEnd
argument, which is called after timer ends.
<Timer
@to={{countToMomentObject}}
@onEnd={{action "onEnd"}}
as |t|/>
DaysLeft: {{t.days}}
HoursLeft: {{t.hours}}
MinutesLeft: {{t.minutes}}
SecondsLeft: {{t.seconds}}
</Timer>
See the Contributing guide for details.
This project is licensed under the MIT License.