0
iは予約が子供の経路子ルートダイナミックルートで、詳細をご予約されたPMはある親ルートである構造が続いエバーの動的な子ルートをリフレッシュしても機能しませんか?
this.route('bookings',function(){
this.route('pm',function(){
this.route('booking-details',{ path: ':invoice_type'});
});
});
ようになっている子のルートを持っています。
私が子ルートをリフレッシュすると、親ルートに戻ります。
代わりlocalhost/bookings/pm/:invoice_type
ルートのURLを示すlocalhost/bookings/pm/undefined
は
1.booking経路
import Ember from 'ember';
export default Ember.Route.extend({
beforeModel(transition){
if(transition.targerName === 'index.bookings.index'){
this.transitionTo('index.bookings.pm');
}
}
});
2.pm経路です。
import Ember from 'ember';
export default Ember.Route.extend({
model:function(params){
<Some Code>
}
});
3.booking-詳細ルート
import Ember from 'ember';
export default Ember.Route.extend({
});