Menu
CoddyTech

Recap: Repair Hub

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

challenge icon

Challenge

Medium

Build the repair hub using three named records: start at /, tools at /equipment, and times at /opening-times. Map them to the supplied Start, Tools and Times views. Put named router links with ids start, tools and times in the shell. Keep h1#brand reading Repair hub and a bound input#note outside main#outlet, which holds the routed view. Notes survive visiting both pages and returning home.

Keep the supplied route readout and bootstrap files.

Display the bound note in p#note-state inside brackets so its reactive state is visible outside the outlet.

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>

All lessons in Routing and State