Multiple Dynamic Segments in a Single Resource in Ember.js

前端 未结 3 1645
抹茶落季
抹茶落季 2021-01-12 19:21

Is there a way to have multiple dynamic segments with a single resource? My use case is to avoid letting the user hit index routes.

Example:

this.res         


        
3条回答
  •  独厮守ぢ
    2021-01-12 20:11

    A possible solution for us was to use the following:

    App.AlbumsIndexRoute = Ember.Route.extend({ 
        redirect: function(){ 
            this.transitionTo('dashboard');
        } 
    });    
    

提交回复
热议问题