Recap: Shared Panel
Part of the Fundamentals section of Coddy's Vue journey. Lesson 40 of 55.
Challenge
EasyBuild a meetup vote panel. Frame.vue supplies an article with a named heading slot inside a header and a default content slot. The parent fills the heading with h2 text Next meetup, displays its vote ref in p#votes as Votes: 0, and places VoteButton.vue in the body slot. The child button emits vote; the parent adds one per event.
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