I needed to know the current route name so I can show or hide a global component that is created on my application.hbs.
This component should be hidden in just one route template, so this looks like the easier solution to me. Getting the current route name and if its equal "posts" it will not show the header-bar component.
Something like this:
Any idea on could I achieve this or something similar that solves my problem?
Aucun commentaire:
Enregistrer un commentaire