Time for the final project! In the NOVA LAB Hologram Workshop you'll combine all the Vue template techniques you've learned in this module. You'll build a fully interactive hologram management panel for the space station - from displaying data, through filtering and styling, to event handling and direct DOM manipulation.
In this module you learned:
{{ }} - displaying reactive data and JavaScript expressions in templates. Remember the limitations: only expressions, not statements.:) - dynamic HTML attribute binding: :src, :class, :style, :disabled. The shorthand syntax : is the standard.@) - handling user events: @click, @submit, @keyup. Modifiers like .prevent, .stop, .once simplify common operations.:class="{ active: isActive }"), array syntax (:class="[classA, classB]") and inline style binding.v-if adds/removes from DOM, v-show only toggles display.:key, iteration over arrays and objects, avoiding v-for with v-if on the same element.ref, function refs, refs on components with defineExpose.Build a Hologram Control Panel that includes:
Display a list of station holograms. Each hologram has a name, type (e.g., "navigation", "diagnostic", "communication") and status (active/inactive). Use
:key with a unique ID.Add three filter buttons: "All", "Active", "Inactive". Based on the selected filter, show the appropriate holograms. Use a computed property to filter the list.
Use
:class so that active holograms have a green border (border-color: #00ff88), and inactive ones have a red border (border-color: #ff4444). Add a neon glow effect (box-shadow) for active elements.Use
ref to automatically scroll the list container to the bottom after adding a new hologram, so the new element is visible.Expand the starter below with all the required features!