ember-timer

1.1.0 • Public • Published

ember-timer

A contextual component to show a countdown timer. Uses Moment.js

Compatibility

  • Ember.js v2.18 or above
  • Ember CLI v2.13 or above
  • Node.js v8 or above

Installation

ember install ember-timer

Usage

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>

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

Readme

Keywords

Package Sidebar

Install

npm i ember-timer

Weekly Downloads

4

Version

1.1.0

License

MIT

Unpacked Size

352 kB

Total Files

9

Last publish

Collaborators

  • abhishek97