Skip to content

Vue Framework

Master Vue Framework with 50 free flashcards. Study using spaced repetition and focus mode for effective learning in Programming.

🎓 50 cards ⏱️ ~25 min Advanced
Study Full Deck →
Share: 𝕏 Twitter LinkedIn WhatsApp

🎯 What You'll Learn

Preview Questions

12 shown

What is Vue.js?

Show ▼

Vue.js is a progressive JavaScript framework for building user interfaces. It is designed to be incrementally adoptable and focuses on the view layer, making it easy to integrate with other libraries or existing projects.

What is the Vue reactivity system?

Show ▼

The Vue reactivity system automatically tracks dependencies and updates the DOM when reactive state changes. In Vue 3, it uses Proxy objects (instead of Object.defineProperty in Vue 2) to intercept get/set operations on reactive data.

How do you create a reactive object in Vue 3?

Show ▼

Use reactive() from the Composition API:
import { reactive } from 'vue'
const state = reactive({ count: 0, name: 'Vue' })
This returns a deeply reactive proxy of the original object.

What is the difference between ref() and reactive()?

Show ▼

ref() wraps a single value (primitive or object) and requires .value to access it in script. reactive() wraps an object and provides direct property access.
const count = ref(0) // count.value
const state = reactive({ count: 0 }) // state.count

What is the Composition API in Vue 3?

Show ▼

The Composition API is a set of function-based APIs (ref, reactive, computed, watch, lifecycle hooks) that allow organizing component logic by feature rather than by option type. It is used inside setup() or <script setup>.

What is the Options API in Vue?

Show ▼

The Options API organizes component logic into predefined options:data() — reactive statemethods — functionscomputed — derived valueswatch — side effectsmounted(), etc. — lifecycle hooks

What is the script setup syntax in Vue 3?

Show ▼

<script setup> is a compile-time syntactic sugar for the Composition API. Top-level bindings (variables, functions, imports) are automatically exposed to the template. It reduces boilerplate by eliminating the need to return values from setup().

What does the v-if directive do?

Show ▼

v-if conditionally renders an element based on a truthy expression. The element is completely destroyed and recreated when the condition toggles:
<p v-if="isVisible">Shown</p>
Use with v-else-if and v-else for multiple conditions.

What is the difference between v-if and v-show?

Show ▼

v-if completely adds/removes the element from the DOM (higher toggle cost). v-show always keeps the element in the DOM and toggles its CSS display property (higher initial render cost).
Use v-show for frequent toggling, v-if for conditions that rarely change.

How does the v-for directive work?

Show ▼

v-for renders a list of items by iterating over an array or object:
<li v-for="(item, index) in items" :key="item.id">{{ item.name }}</li>
A unique :key attribute is required for efficient DOM patching.

What does v-bind do in Vue?

Show ▼

v-bind dynamically binds an HTML attribute or component prop to an expression:
<img v-bind:src="imageUrl">
Shorthand: <img :src="imageUrl">
It can also bind multiple attributes at once using an object: v-bind="attrObject".

How does v-model work?

Show ▼

v-model creates a two-way binding between a form input and reactive data:
<input v-model="message">
It is syntactic sugar for :value="message" combined with @input="message = $event.target.value".

🎓 Start studying Vue Framework

🎮 Study Modes Available

🔄

Flashcards

Flip to reveal

🧠

Focus Mode

Spaced repetition

Multiple Choice

Test your knowledge

⌨️

Type Answer

Active recall

📚

Learn Mode

Multi-round mastery

🎯

Match Game

Memory challenge

Related Topics in Programming

📖 Learning Resources