hey I am new to Ember, I am trying to make a Linkto button which changes an image (an icon from active to non active). i have 4 of these icons each one with an active and non active, so I cant use “@activeClass” on the Linkto.
what I really want is to do something like this:
<Linkto @route="etc">
<img src = "{{if "SOMETHING" img1 img2}}"
</Linkto>
i couldnt figure out what that SOMETHING is. i dont understand how to access the Linkto’s “active” property. i also tried wrapping both of them inside another componenet, but then I couldnt figure out how to buble the active state to the component. and putting an {{on click}} on the linkto didnt trigger an action on the wrapping componenet…
any advice? thanks!
1 post - 1 participant