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:loesungen:10 [2025/03/04 12:06] – vdemir | en:modul:m291:learningunits:lu05:loesungen:10 [2025/03/28 10:50] (aktuell) – vdemir | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== LU05.S09 - v-else-if and v-else | + | ====== LU05.S10 - v-if and functions |
| - | ===== Sourcecode of the solution ===== | + | ===== Hints ==== |
| + | * Download the file and copy the content into the code area of the W3School on the left hand side of the coding window. | ||
| + | * You can execute the code by pressing the //run// button | ||
| + | * The result will be presented in the right hand side of the window. | ||
| - | {{: | + | ===== Assignment 1 ====== |
| + | As we are now capable to use //v-if// with logical values (true/ | ||
| - | ===== Assignment ====== | + | |
| - | The first assignment checked by using v-if whether a certain | + | - Now delete |
| + | - Note your realisations | ||
| + | - Save your script acordingly, whether in your W3School workspace or locally in your Webstorm code-editor | ||
| - | - Change | + | ===== Assignment 2 ===== |
| - | - Note your realisations as a html-comment. | + | In the if paragraph there is a image of a pizza displayed as well. |
| - | - Change the content of the variable | + | |
| - | - What happens, if the value //typeWiter// has no value at all respectively is empty? | + | - Add a section //v-else// with a according |
| - | - Note your realisations as a html-comment. | + | - Note your realisations as a code-comment. |
| - | - Save your script | + | - Save your script |
| + | |||
| + | ===== Solution ===== | ||
| + | {{: | ||
| + | |||
| + | {{: | ||
| - | {{: | ||
| - | ===== Vocabulary ===== | ||
| - | ^ English ^ German ^ | ||
| - | | ... | ... | | ||
| ---- | ---- | ||
| [[https:// | [[https:// | ||
| + | | ||