Skip to content

Instantly share code, notes, and snippets.

@SlyDen
Forked from NetguruGist/returnedpromise3.js
Created November 8, 2016 15:25
Show Gist options
  • Save SlyDen/abd4031919e043e47682505cd6007d4d to your computer and use it in GitHub Desktop.
Save SlyDen/abd4031919e043e47682505cd6007d4d to your computer and use it in GitHub Desktop.
model() {
let userPromise = this.store.findAll(‘user’);
userPromise.catch((error) => {
// transition to another route and show some error notification saying your team is doing their best to fix the problem
});
return userPromise;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment