Ember.js: transitionTo route, then to dynamic segment

前端 未结 5 1220
北荒
北荒 2021-02-01 07:45

I have a Router set up with accounts, and account/:account_id options. When the user lands on the index page of my app I transition them to the accounts route.

S         


        
5条回答
  •  南方客
    南方客 (楼主)
    2021-02-01 08:24

    It looks like transitionTo is deprecated in favor of transitionToRoute.

    Nonetheless you can achieve the reroute by having the original declaration be this.resource('account', { path: '/:account_id'}); and then the transition with the single created object should work.

提交回复
热议问题