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:10 [2025/03/18 07:46] – vdemir | en:modul:m291:learningunits:lu05:aufgaben:10 [2025/03/28 10:55] (aktuell) – [Vocabulary] vdemir | ||
---|---|---|---|
Zeile 11: | Zeile 11: | ||
- Being able to apply v-if in combination wit a function | - Being able to apply v-if in combination wit a function | ||
- | ===== Source | + | ===== Sourcecode of the solution |
- | * [[https:// | + | * Example without image: |
- | * [[https:// | + | * Example with image: |
- | + | ||
===== Assignment 1 ====== | ===== Assignment 1 ====== | ||
- | As we are now capable to use v-if with logical values (true/ | + | As we are now capable to use //v-if// with logical values (true/ |
- | - Execute the script. As you can see the content of the variable text is displayed on the screen. | + | - Execute the script. As you can see the content of the variable text is displayed on the screen |
- | - Now delete the word //Pizza// from the variable text. Execute your script again. | + | - Now delete the word //Pizza// from the variable |
- | - Note your realisations as a html-comment. | + | - Note your realisations as a comment. |
- | - Save your script | + | - Save your script |
===== Assignment 2 ===== | ===== Assignment 2 ===== | ||
Zeile 27: | Zeile 27: | ||
- Add a section //v-else// with a according //img-tag// which shows a different image than a pizza. | - Add a section //v-else// with a according //img-tag// which shows a different image than a pizza. | ||
- | - Note your realisations as a html-comment. | + | - Note your realisations as a code-comment. |
- | - Save your script | + | - Save your script |
===== Solution ===== | ===== Solution ===== | ||
Zeile 37: | Zeile 37: | ||
^ English ^ German ^ | ^ English ^ German ^ | ||
| afterwards | anschliessend| | | afterwards | anschliessend| | ||
- | | accordingly | entsprechend | + | | accordingly | entsprechend |