Dies ist eine alte Version des Dokuments!
LU07.A05 - Mood measurement, realized with methods
Prerequisites
- 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.
 
Source
Assignments
Realize the assignment LU07.A05 - Events - Mood measuremen by using methods:
- Display a heading: „Choose Your Mood**.
 - Add three buttons, each representing a different mood:
- 😊 Happy
 - 😢 Sad
 - 😠 Angry
 
 - Use the v-on directive to update a data property called mood based on the button clicked.
 - Display a custom message below the buttons that changes based on the selected mood.
 - When no mood is selected, show a default message prompting the user to pick one.
 
Hint
- When clicking a button, just pass a number to the method with the messages.
 - In that methods a if (selction) checks the content of the argument and displays the corresponding message.
 
