If I have the following code for my state:
var year = this.get('year').get('number');
var month = this.get('month').get('label').toLowerCase();
App.get('router').transitionTo('volumeElaboration', { month: month, year: year });
How would I go about getting the month and year variables once the state has changed? My state itself is defined like so:
volumeElaboration: Ember.Route.extend({
route: '/volume/:month/:year',
connectOutlets: function(router)
{
router.get('applicationController').connectOutlet('volumeElaboration');
}
}),
There is actually a second variable available in the
connectOutletscall. That variable is the context.