Menu
CoddyTech

Planner Routes

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

Build this checkpoint of the Community Workshop Planner.

Build the Community Workshop Planner route shell. The supplied catalog contains Clay workshop (id clay, capacity 2) and Code workshop (id code, capacity 3). Catalog is the root route, detail is the named workshop route at /workshops/:id, and My plan is /plan. Render each current title in h2#view and detail capacity as Capacity: n in p#capacity. A missing workshop shows only p#missing with Workshop not found; an unmatched path shows Page not found. Keep the persistent header and all supplied links. Pinia and the shared data module are supplied infrastructure for this step.

Keep the supplied route readout and bootstrap files.

challenge icon

Challenge

Hard

Build the Community Workshop Planner route shell. The supplied catalog contains Clay workshop (id clay, capacity 2) and Code workshop (id code, capacity 3). Catalog is the root route, detail is the named workshop route at /workshops/:id, and My plan is /plan. Render each current title in h2#view and detail capacity as Capacity: n in p#capacity. A missing workshop shows only p#missing with Workshop not found; an unmatched path shows Page not found. Keep the persistent header and all supplied links. Pinia and the shared data module are supplied infrastructure for this step.

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