如果我的状态有以下代码:
var year = this.get('year').get('number');
var month = this.get('month').get('label').toLowerCase();
App.get('router').transitionTo('volumeElaboration', { month: month, year: year });
一旦状态发生变化,我将如何获取月份和年份变量?我的状态本身是这样定义的:
volumeElaboration: Ember.Route.extend({
route: '/volume/:month/:year',
connectOutlets: function(router)
{
router.get('applicationController').connectOutlet('volumeElaboration');
}
}),