Category: Vue

0

Chapter 21: Vue Components

Vue Components, the single most important building block in Vue. Once you really understand components, everything else in Vue (routing, state, forms, styling) suddenly makes a lot more sense. Think of a Vue component...

0

Chapter 22: Vue Props

Vue Props, one of the most fundamental and frequently used concepts in Vue.js. Think of props as the official way a parent component sends data down to a child component. It’s a one-way data...

0

Chapter 23: Vue v-for Components

v-for with components in Vue 3. This is one of the most common and most powerful patterns you’ll use in real Vue applications. Almost every real app has lists: todo items, products in a...

0

Chapter 24: Vue $emit() Method

Vue: $emit() (and its modern Composition API version emit()). This is the official way a child component talks back to its parent. In Vue we have a very clear direction rule: Props go down...

0

Chapter 25: Vue Fallthrough Attributes

Fallthrough Attributes (also called Attribute Fallthrough or $attrs inheritance) This is something that confuses almost every developer the first time they see it — but once you understand it, it becomes one of your...

0

Chapter 26: Scoped Styling

Scoped Styling (or <style scoped>) This is the reason why so many developers fall in love with Vue’s .vue file format — because it gives you true style encapsulation without any extra tools or...

0

Chapter 27: Local Components

What are “Local Components”? In Vue, local components (also called locally registered components) are components that are only available inside one specific parent component. They are not globally registered — which means: You cannot...

0

Chapter 28: Vue Slots

Slots (also called content distribution or composability outlets) Slots are Vue’s way of letting a parent component inject custom content (HTML, components, text…) into a child component at specific places — without the child...

0

Chapter 29: Vue v-slot

v-slot (and its shorthand #) This is the official, modern way to work with slots in Vue 3 (since Vue 2.6+ actually, but fully mature in Vue 3). v-slot replaced the old confusing slot=”name”...

0

Chapter 30: Vue Scoped Slots

Scoped Slots This is the feature that truly makes Vue components composable powerhouses. Once you master scoped slots, you will feel like you unlocked a cheat code for building flexible, reusable UI libraries and...