News for hackers. Stuff that matters.
Re:An In-Depth Introduction To Ember.js by Mc_Big_G on Thursday November 07, 2013 @09:36AM (#6689497)
I only reviewed it quickly, but I think they should be using the "then" pattern of promises when saving and transitioning.

So this:

this.get('model').save();

this.transitionToRoute('users');

Should be:

var controller = this;

this.get('model').save().then(function(model) {

  controller.transitionToRoute('users');
}).fail(function(error) {

  //Feedback for the user
});
Re:An In-Depth Introduction To Ember.js by ulisesrmzroche on Thursday November 07, 2013 @10:26AM (#6689794)
True. That's how you should implement the flow control after validation.