0
내 상태에 대해 다음과 같은 코드가있는 경우 : 어떻게하면 반대편에있는 상태 변수를 얻을 수 있습니까?
var year = this.get('year').get('number');
var month = this.get('month').get('label').toLowerCase();
App.get('router').transitionTo('volumeElaboration', { month: month, year: year });
가 어떻게이 상태가 변경되면 월과 올해 변수를 받고 가겠어요
? 내 상태 자체가과 같이 정의된다 : 실제로connectOutlets
전화에서 사용할 수있는 두 번째 변수가
volumeElaboration: Ember.Route.extend({
route: '/volume/:month/:year',
connectOutlets: function(router)
{
router.get('applicationController').connectOutlet('volumeElaboration');
}
}),
죄송합니다. 아마도 내 질문에 명확하지 않습니다. 내 견해로는 월별 변수를 되돌리고 싶습니다. 뭔가 : this.get ('month') – Wildhoney