Ember.js: transitionTo route, then to dynamic segment

前端 未结 5 1277
北荒
北荒 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:05

    As your /:account_id is a resource you need to transitionToRoute 'account'. You also need an AccountRoute accordingly.

    If /:account_id was a route not a resource you would transitionToRoute 'accounts.account' and your route handler would be called AccountsAccountRoute.

提交回复
热议问题