Quiz: An Order of Its Own
In this app, the Order buttons seem to do nothing: the order still says Nothing yet., and there's no error in the console. Click the line with the mistake in OrderList.vue.
1<script setup>
2import { ref } from "vue";
3
4const order = ref([]);
5</script>
6
7<template>
8 <section class="order">
9 <h2>Your order</h2>
10 <p v-if="order.length === 0">Nothing yet.</p>
11 <ul v-else>
12 <li v-for="line in order" :key="line.id">{{ line.count }} × {{ line.name }}</li>
13 </ul>
14 </section>
15</template>