Closed PolGuixe closed 8 years ago
Work around using Router.current().route.getName()
altough I don't know if it's the best way.
@PolGuixe when you say used to, do you mean with an older version of IR? getName()
is actually the correct way to do it
But should this.params.getName()
work?
per the guide (http://iron-meteor.github.io/iron-router/#getting-the-current-route) it should not
this.params
is for accessing parts of the url. the name of the route doesn't fall into that category, hence the change in functionality
Understood.
Many thanks,
this.params.name
used to return the template name in:However now is undefined