Skip to content

Instantly share code, notes, and snippets.

@tsubik
Last active January 19, 2016 11:29
Show Gist options
  • Save tsubik/ad8a90667bfb2adb9986 to your computer and use it in GitHub Desktop.
Save tsubik/ad8a90667bfb2adb9986 to your computer and use it in GitHub Desktop.
Promise rejections
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
actions: {
save() {
Ember.RSVP.reject("something not error object");
}
}
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{outlet}}
<br>
<button {{action "save"}}>Click me</button>
<br>
{
"version": "0.5.0",
"EmberENV": {
"FEATURES": {}
},
"options": {
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "canary",
"ember-data": "release",
"ember-template-compiler": "canary"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment