Ember isFulfilled

For the Member Get Member Company we build an admin in Ember with us of the ember-cli-admin addon. We want to show to the users of the admin if the current user does not have offers. We can just make a simple if-statement, but isn’t it nicer to have the text to be always right? We use the isFulfilled-flag for that.

{{#if model.offers}}
  {{#each model.offers as |offer|}}
{{else if model.offers.isFulfilled}}
  <p>This user has absolutely no offers</p>
  <p>Loading offers...</p>

Ember 2.0.0

Happy coding! – Found a mistake or a typo? Please submit a PR to my GitHub-repo.

Like this post? Follow @adriaanvrossum on Twitter