Menu
CoddyTech

Recap: Activity Log

Part of the Fundamentals section of Coddy's Vue journey. Lesson 45 of 55.

challenge icon

Challenge

Easy

Create a mounted activity log. Display Session ready in h2#heading, attach a template ref, and show its measured text length as 13 in #length after mount. Use a draft input #topic initially Welcome, plus a separate topic ref with the same initial value. Button #commit assigns the draft to the topic. Editing the draft alone does not create a topic transition. Watch it and append old to new transitions to ol#result; do not add an initial entry or an entry when the same value is assigned.

Try it yourself

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

All lessons in Fundamentals