Ember transitionTo or transitionToRoute?
They are basically the same thing, but transitionTo
is supposed to be used by a Route
, meanwhile transitionToRoute
should be used inside a Controller
.
//app/routes/application.js
this.transitionTo('blogPosts');
//app/controllers/application.js
this.transitionToRoute('blogPosts');
Tweet