LU05.A10 - v-else-if and v-else

  • Work type: Individual
  • Means of aid: only teaching materials, no websearch, no use of ai.
  • Timeframe: 15 Minutes
  • Expected result: A Vue script that displays HTML elements based on input values.
  1. Explaining the The directive v-if in your own word.
  2. Being able to apply v-if in combination wit e-else-if and v-else

In this assignment we are going to use v-if in compination with both v-else-if and v-else-if. This three selection elements of VUE allow us to check up to any number of values, e.g. in stock, very few left oder not on stock.

  1. Change the content of the variable typewriter to a value between 0 und 5. Run afterwords the strict afterwards.
  2. Introduce an additional paragraph with plenty which contains a values less than 10
  3. Note your realisations as a html-comment.
  4. Save your script acoordingly, whether in your W3School workspace or on you local computer in your code-editor Webstorm
English German
afterwards anschliessend

Volkan Demir

  • en/modul/m291/learningunits/lu05/aufgaben/10.txt
  • Zuletzt geändert: 2025/01/27 14:43
  • von vdemir