← Custom App Academy

Delivery quote · 2 / 5

Let the customer choose quantity

Add a labelled numeric field backed by Vue state.

YOUR TASK

Make this happen

3 steps
  1. Add Vue quantity state with ref(1), a labelled numeric input and v-model.number. Set unitPrice to 12 for the upcoming estimate.

  2. Keep the working capabilities from the previous lesson and connect the new pieces to the same solution.

  3. Check the complete solution, then inspect any unmet requirements.

This step starts with the earlier solution and one new challenge. Each lesson keeps its own draft.

Read the starter files

App.vue

<template>
  <section aria-labelledby="quote-title">
    <h2 id="quote-title">Delivery quote</h2>
    <p>Review delivery costs before confirming.</p>
  </section>
</template>
Supplied supporting files

Reference: custom-apps · authoring