Reputation: 423
I have a link to helper that generate a <span>
. The <span>
should:
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
Upvotes: 0
Views: 38
Reputation: 6397
Adapted from the guides:
{{#link-to 'status' tagName='span' class='arrow' activeClass='open'}} {{/link-to}}
The class
property lets you set the class that will be present at all times.
Upvotes: 1