Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
en:modul:m291:learningunits:lu05:aufgaben:08 [2025/03/04 11:55] – vdemir | en:modul:m291:learningunits:lu05:aufgaben:08 [2025/03/18 07:46] (aktuell) – vdemir | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== LU05.A07 - v-if (simple) | + | ====== LU05.A08 - v-if with numbers instead of bool ====== |
===== 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: Vue script that displays HTML elements based on input values. | + | * Expected result: |
===== Learning objectives ===== | ===== Learning objectives ===== | ||
- Explaining the The directive //v-if// in your own word. | - Explaining the The directive //v-if// in your own word. | ||
- | - Manipulating simple DOM elements based on the directive //v-if// | + | - Being able to apply logical operators within a v-if directive. |
===== Source ===== | ===== Source ===== | ||
- | * [[https:// | + | * [[https:// |
===== Assignment ====== | ===== Assignment ====== | ||
- | In the script area of the W3-School example (link above) you will find a variable // | + | The first assignment checked by using v-if whether |
- | + | | |
- | | + | - Note your realisations as a html-comment. |
- | - Note your realisations as a html-comment! | + | - Change the content of the variable |
+ | - What happens, if the value // | ||
+ | - Note your realisations as a html-comment. | ||
- Save your script acoordingly, | - Save your script acoordingly, | ||
Zeile 25: | Zeile 28: | ||
===== Solution ===== | ===== Solution ===== | ||
[[en: | [[en: | ||
+ | |||
===== Vocabulary ===== | ===== Vocabulary ===== |