Dies ist eine alte Version des Dokuments!


LU07.A05 - Mood measurement, realized with methods

  • Work type: Individual
  • Means of aid: only teaching materials, no websearch, no use of ai.
  • Timeframe: 15 Minutes
  • Expected result: a vue application, that reflects the mood of the user.
  • You can take any script an adjust it to your needs.

Realize the assignment LU06.A04 - Events - Mood measuremen by using methods:

  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.
  1. When clicking a button, just pass a number to the method with the messages.
  2. In that methods a if (selction) checks the content of the argument and displays the corresponding message.
English German
corresponding entsprechend, passende

Volkan Demir

  • en/modul/m291/learningunits/lu07/loesungen/05.1747565582.txt.gz
  • Zuletzt geändert: 2025/05/18 12:53
  • von vdemir