In my router, I have
this.route('tends', { path: '/tends' }, function() {
this.route('user', { path: ':usern' });
});
How do I access, the :usern
value in my template?
For example, I have tried
{{params.usern}}
and
{{usern}}
Unfortunately, neither of these approaches work.
Note: My template is for a route such as tends/usern_here_please
and I want the value of usern_here_please
.
Aucun commentaire:
Enregistrer un commentaire