I have a link to helper that generate a <span>
. The <span>
should:
- have the class:"arrow open" when it is active.
have the class:"arrow" when it is NOT active.
{{#link-to 'status' tagName="span" activeClass="arrow open"}} {{/link-to}}
Question: The point 1 is working with the use of the activeClass. However, I don't how to assign a class when the link-to helper is not active as per the point 2.
tks
Aucun commentaire:
Enregistrer un commentaire