Recap: Conditions
Part of the Fundamentals section of Coddy's Vue journey. Lesson 25 of 55.
Challenge
EasyBuild a team roster using the supplied teams array. Show li rows in ul#result, keyed by id, each with its name and an unbound input whose id is note- plus the team id. Button #reverse reverses the roster without mixing notes. Button #toggle hides or shows the whole roster with v-show, initially shown. Notes must survive both operations.
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 Tasks