What problem does it solve?
This Skill provides a comprehensive guide to building Vue.js applications using the Options API, addressing common patterns, reactivity caveats, and legacy best practices.
Core Features & Use Cases
- Options API Structure: Demonstrates the standard component structure with data, computed properties, methods, watchers, and lifecycle hooks.
- Vuex Integration: Illustrates how to manage global state using Vuex modules, getters, mutations, and actions.
- Legacy Patterns: Covers mixins, filters, and event buses, highlighting their usage and potential drawbacks.
- Component Communication: Explains props/events and slots for effective parent-child interaction.
- Use Case: A developer maintaining or building a Vue 2 application can use this Skill to quickly reference correct patterns for state management, component logic, and inter-component communication, avoiding common pitfalls.
Quick Start
Use the vue2-legacy skill to generate a Vue 2 component example demonstrating data fetching with Vuex.