Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
en:modul:m291:learningunits:lu05:aufgaben:12 [2025/01/27 15:21] – angelegt vdemir | en:modul:m291:learningunits:lu05:aufgaben:12 [2025/03/28 09:33] (aktuell) – vdemir | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== LU05.A12 - v-if, v-else ... combined with AND/OR operators | + | ====== LU05.A12 - v-show simple applied to texts ============ |
===== Prerequisites | ===== Prerequisites | ||
* Work type: Individual | * Work type: Individual | ||
* Means of aid: only teaching materials, no websearch, no use of ai. | * Means of aid: only teaching materials, no websearch, no use of ai. | ||
- | * Timeframe: | + | * Timeframe: |
- | * Expected result: A Vue script that displays HTML elements based on input values. | + | * Expected result: A Vue script that fades-in and fades-out a given text. |
===== Learning objectives ===== | ===== Learning objectives ===== | ||
- | - Explaining the The directive //v-if// in your own word. | + | - |
- | - Being able to apply v-if in combination with AND/OR operators | + | |
===== Source ===== | ===== Source ===== | ||
- | * [[https:// | + | * [[https:// |
| | ||
===== Assignment ====== | ===== Assignment ====== | ||
- | This assignment | + | The assignment |
+ | |||
+ | - Click the link above to the code-exambpe to get to the W3School-TryOut area. | ||
+ | - Save the code with a suitable name | ||
+ | - Have it run by clicking the // | ||
+ | - Change | ||
+ | - What happens | ||
+ | - Note the result as a html-comment und beobachten Sie die Reaktion der Applikation. | ||
+ | - Save your result, you may need it as a exam-preparation. | ||
+ | |||
+ | ===== Solution ===== | ||
+ | [[en: | ||
- | - Change the value within the if to //<12// for people under the age of 12 are allowed to go to the cinema. | ||
- | - Execute your script | ||
- | - Between 12 and 16 they are allowed up to 18 o' | ||
- | - Execute your script | ||
- | - Person older than 16 may go to the cinemas without time restriction. | ||
- | - Execute your script | ||
- | - Comment and save your script your results accordingly. | ||
- | - Change your script for young customers may also go to the cinema when they are accompanied by an adult. Therefore will need a additionel variable // | ||
- | - Execute your script | ||
- | - Comment and save your script your results accordingly. | ||
===== Vocabulary ===== | ===== Vocabulary ===== | ||
^ English ^ German ^ | ^ English ^ German ^ | ||
- | | afterwards | + | | ... | ... | |
- | | accordingly | + | | ... | ... | |