Dies ist eine alte Version des Dokuments!


LU06.S04 Events - mood measurement

Create a small Vue app with the following features:

  1. Display a heading: „Choose Your Mood“.
  2. Add three buttons, each representing a different mood:
    • 😊 Happy
    • 😢 Sad
    • 😠 Angry
  3. Use the v-on directive to update a data property called mood based on the button clicked.
  4. Display a custom message below the buttons that changes based on the selected mood.
  5. When no mood is selected, show a default message prompting the user to pick one.

Solution executed in the W3School-Sandbox

Solution in Webstorm editor

English German
step-size Schrittweite

Volkan Demir

  • en/modul/m291/learningunits/lu06/loesungen/04.1745585347.txt.gz
  • Zuletzt geändert: 2025/04/25 14:49
  • von vdemir