ember-delay
v0.1.0 ember-addon
ember-delay
Create promises which resolve after a specified delay
Questions? Ping me @gavinjoyce
Installation
This is an Ember CLI addon so all you need to do is
npm install ember-delay --save
Usage Instructions
delay(milliseconds)
returns a promise which resolves after the specified milliseconds (the default is 2000
).
import delay from 'ember-delay/delay';
var MyRoute = Ember.Route.extend({
model: function() {
return delay(1000).then(function() {
return {
name: 'Alex'
};
});
}
})
Development Instructions
git clone
this repositorynpm install
bower install
TODOs:
- provide a sample usage
- some tests
Running
ember server
- Visit your app at http://localhost:4200.
npm i ember-delay
Metadata
- MIT
- ^4.5 || 6.* || >= 7.*
- Gavin Joyce
- released 6/29/2017