Recap: Activity Log
Part of the Fundamentals section of Coddy's Vue journey. Lesson 45 of 55.
Challenge
EasyCreate 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
2Reactive State
Reactive RefsUpdating Refs in ScriptEvent Handler ArgumentsReactive ObjectsRecap: Reactive State5Conditions and Lists
Conditional BranchesShow without UnmountingRendering ListsStable List IdentityRecap: Conditions8Component Communication
Emitting EventsEvent PayloadsLifting Shared StateDefault and Named SlotsRecap: Shared Panel11Project: Community Board
Board StructureAdding Community Tasks6Working with Lists
Adding List ItemsRemoving by IdComputed Search ResultsCounts from ListsRecap: List Manager9Watchers and Lifecycle
Watching a RefWatching Object FieldsMounted DOM AccessCleaning Up on UnmountRecap: Activity Log