Menu
CoddyTech

Shared Reservations

Part of the Routing and State section of Coddy's Vue journey. Lesson 52 of 55.

Build this checkpoint of the Community Workshop Planner.

Continue your previous planner and preserve its routes, header, catalog, reactive detail lookup and both fallbacks. Add shared reservation actions: Reserve seat adds one to the current workshop up to capacity; Release seat removes one down to zero. Each starts at zero. Show Reserved: n in p#reserved. My plan displays Total seats: n in p#total and one span#plan-ID per workshop with Title: n. Reservations survive route changes and remain independent per workshop.

Keep the supplied route readout and bootstrap files.

challenge icon

Challenge

Hard

Continue your previous planner and preserve its routes, header, catalog, reactive detail lookup and both fallbacks. Add shared reservation actions: Reserve seat adds one to the current workshop up to capacity; Release seat removes one down to zero. Each starts at zero. Show Reserved: n in p#reserved. My plan displays Total seats: n in p#total and one span#plan-ID per workshop with Title: n. Reservations survive route changes and remain independent per workshop.

Keep the supplied route readout and bootstrap files.

Try it yourself

<!doctype html><html><head><meta charset="UTF-8"><title>Routing practice</title></head><body><div id="app"></div><script type="module" src="./main.js"></script></body></html>
quiz iconTest yourself

This lesson includes a short quiz. Start the lesson to answer it and track your progress.

All lessons in Routing and State