v-if
directive:seen
property is changed to false, the second Text widget is removed from the window.v-else-if
and v-else
directives to create conditions with multiple alternatives:v-for
directive:items
array. When an item is added or removed from this array, corresponding Text widgets are automatically added or removed.key
attribute for each item. This way, the state of widgets will be preserved when array items are reordered.