Hi,
as Mike Aski answered on this question at stackoverflow:
its considered bad practice to transition to another route from a controller.
-
is it true?
-
if so, what will be a better approach?
App.CreateReviewController = Ember.Controller.extend({ createReview : function () { var review = App.Review.createRecord({ author : this.get('author'), text : this.get('text') }); review.save(); // transition from the controller, is it bad? this.transitionToRoute('reviews'); }});
Thank you in advance.