Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
en:modul:m291:learningunits:lu05:aufgaben:09 [2025/01/27 13:53] – angelegt vdemir | en:modul:m291:learningunits:lu05:aufgaben:09 [2025/03/28 08:27] (aktuell) – vdemir | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== LU05.A09 - v-if with logical operators | + | ====== LU05.A09 - v-else-if and v-else |
===== 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 displays HTML elements based on input values. | ||
===== Learning objectives ===== | ===== Learning objectives ===== | ||
- Explaining the The directive //v-if// in your own word. | - Explaining the The directive //v-if// in your own word. | ||
- | - Being able to apply logical operators within a v-if directive. | + | - Being able to apply v-if in combination wit e-else-if and v-else |
===== Source ===== | ===== Source ===== | ||
- | * [[https:// | + | * [[https:// |
+ | |||
===== Assignment ====== | ===== Assignment ====== | ||
- | The first assignment | + | In this assignment |
- | - Change the value of the variable // | + | - Change the content |
- | - Note your realisations as a html-comment. | + | - Introduce |
- | - Change the content of the variable | + | |
- | - What happens, if the value //typeWiter// has no value at all respectively is empty? | + | |
- Note your realisations as a html-comment. | - Note your realisations as a html-comment. | ||
- Save your script acoordingly, | - Save your script acoordingly, | ||
- | |||
- | |||
===== Solution ===== | ===== Solution ===== | ||
- | [[en: | + | [[en: |
- | ===== Assignment 2: local src ===== | ||
- | - Download another picture of your choice. | ||
- | - Create in your W3 workingspace a directory //media// and save the downloaded picture there | ||
- | - overwrite the url in the app to display your new local picture | ||
- | - Execute your script by having it //run//. | ||
- | - Save your solution accordingly. Therefore you might need a W3-School-Account. | ||
- | |||
- | ===== Solution ===== | ||
- | [[en: | ||
===== Vocabulary ===== | ===== Vocabulary ===== | ||
^ English ^ German ^ | ^ English ^ German ^ | ||
- | | ... | ... | | + | | afterwards |