I have a link-to helper that when active renders a {{outle}}. When click it again and is active should send me back to the default view.
{{#link-to "details.decline" model.id classBinding=":decline :cta :flexbox"}}
<strong>DECLINE</strong>
{{/link-to}}
I try a work around with actions which works find but I am just wondering if there is a way to be able to toggle a link-to helper.
Aucun commentaire:
Enregistrer un commentaire