我有一个操作:
{{action create target="controller"}}
我已经将其定位到绑定控制器(而不是路由器),就像这样:
App.AddBoardController = Ember.Controller.extend
create: ->
App.store.createRecord App.Board, {title: @get "boardName"}
App.store.commit()
//TODO: Redirect to route
如何从控制器操作重定向回路由?
transitionToRoute
seems to no more exist in Ember 3 and raises the error when using in a controller:Uncaught TypeError: Cannot read property 'transitionToRoute' of undefined
- belgoros