Category: Vue

0

Chapter 61: Vue $parent Object

The $parent object (also written as this.$parent in Options API) This is not something you should reach for often in modern Vue 3 code — but understanding it properly will help you read legacy...

0

Chapter 62: Vue $props Object

The $props object (also written as this.$props in Options API or simply props in modern Composition API) This object is the official, single source of truth for all data that the parent component deliberately...

0

Chapter 63: Vue $refs Object

The $refs object (also written as this.$refs in Options API or simply refs via template refs in modern Composition API) This is not the same as the ref() function you use for reactive state...

0

Chapter 64: Vue $root Object

The $root object (usually written as this.$root in Options API or accessed via getCurrentInstance().root in modern Composition API) This is not something you should reach for in new code — but understanding it properly...

0

Chapter 65: Vue $slots Object

The $slots object This is not something you write or create yourself — Vue automatically gives it to every component instance. $slots is basically a read-only map that tells the current component: “Hey, the...

0

Chapter 66: Vue $emit() Method

The $emit() method (in modern Vue 3 with <script setup> it’s usually just called emit()) This is the official, recommended way a child component tells its parent that “something happened”. In Vue we follow...

0

Chapter 67: Vue $forceUpdate() Method

This.$forceUpdate() (Options API) or instance.proxy.$forceUpdate() / getCurrentInstance().proxy.$forceUpdate() (Composition API) This method is not part of the Composition API philosophy, and in modern Vue 3 code written with <script setup>, you almost never need it...

0

Chapter 68: Vue $nextTick() Method

NextTick() (often written as $nextTick() in Vue 2 / Options API, or just nextTick() in modern Vue 3 + <script setup>) This tiny function is the #1 tool you reach for when you need...

0

Chapter 69: Vue $watch() Method

Watch()). This is the tool you reach for when you want to run some code automatically every time a specific piece of reactive data changes. It’s like saying: “Hey Vue, please keep an eye...

0

Chapter 70: Vue Directives

Vue Directives, one of the most iconic, most loved, and most instantly recognizable features that makes Vue feel like “HTML on steroids”. Vue Directives are special attributes that start with v- (like v-if, v-for,...