Ember CLI Moment Range
ES6 accessible module for both Moment.js and moment-range within your Ember.js application
Installation
Installing the Ember CLI Moment Range addon installs both moment and moment-range.
ember install ember-cli-moment-range
Usage
To use moment
in your Ember app, import the module
and call moment
as you would the global moment
.
To use moment-range, invoke the moment.range()
function.
Example
// app/components/date-range.js ;;; ;
To learn more about moment
, see the Moment.js Guides
and the moment-range examples.
Contributing
Installing
git clone git@github.com:hankfanchiu/ember-cli-moment-range.gitcd ember-cli-moment-rangenpm installbower install
Running
ember server
- Visit your app at http://localhost:4200.
Testing
ember test
ember test --server
Building
ember build
For more information on using ember-cli, visit http://ember-cli.com.