Usage
Last updated
Was this helpful?
Last updated
Was this helpful?
Use <Await />
component to load your data in your components. You can take advantage of , like Pending
, Fulfilled
or Rejected
to define your UI based on promise state, example:
You can also control the state yourself using , where you can access isPending
, isRejected
etc...
Your @promise
can be anything. A promise, function which returns promise, a task (from ember-concurrency) or normal string. Sky is the limit.
You can also load the promise on demand using @defer
:
More Guides are coming soon!
For more useful patterns in Ember Await check out the rest of the documentation and visit for reference.