I have nested routes like this:
this.resource('profile', { path: '/:user' }, function(){
this.route('followers');
this.route('following');
});
I need an access to the value of 'user' dynamic segment in my followers/following routes/controllers. One way I have figured out is to use
this.controllerFor('profile').get('user')
inside my followers/following routes.
What is the correct way to do this?
Thanks,
I think you're looking for
route#modelFor
.Example: