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:08 [2025/01/27 13:39] – vdemir | en:modul:m291:learningunits:lu05:loesungen:08 [2025/03/27 09:23] (aktuell) – [Assignment] vdemir | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== LU05.S08 - v-if (simple) | + | ====== LU05.S08 - v-if with numbers instead of bool ====== |
===== Sourcecode of the solution ===== | ===== Sourcecode of the solution ===== | ||
- | * {{ : | + | {{ : |
===== 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 |
- | - Change the value of the variable //typewritersInStock// to //false// and run the script. | + | - Change the value of the variable //typewriter// to 0 und execute the script. |
- | - 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 js-comment or html-comment. | ||
- Save your script acoordingly, | - Save your script acoordingly, | ||
{{: | {{: | ||
- | |||
- | |||
===== Vocabulary ===== | ===== Vocabulary ===== |