dimanche 17 novembre 2019

Proper way to toggle classes in Ember Octane with Handlebars?

I want to toggle between class display on and display-off using Ember.js Octane. How do I do this? Do I need an @action or @tracked?

<img src="flower.jpg" alt="flower" class="display-on">  
or
<img src="flower.jpg" alt="flower" class="display-off"> 



Aucun commentaire:

Enregistrer un commentaire