by Dan Almenar
The sole purpose of this mini app is to showcase possible uses for the Vue <slot> tag, not only to add HTML elements to the child component directly from the parent's component <template> tag, but also to embed other components, or to retrieve data and even functions (methods) from the child component and use them directly on the parent. In no way the components functionality is design as they would in a real project.
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
See Vite Configuration Reference.
npm install
npm run dev
npm run build
Lint with ESLint
npm run lint