
Vue Basics
Vue instances, templates, directives (v-if, v-for, v-bind, v-on), data binding, computed properties, watchers
1What is a Vue instance?
What is a Vue instance?
Answer
A Vue instance is the object created by calling createApp() that represents the application. This root object contains all reactive data, methods, and configuration options. It serves as the entry point for mounting the application to a DOM element and initializing Vue's reactivity system.
2What is the purpose of the v-bind directive?
What is the purpose of the v-bind directive?
Answer
The v-bind directive allows dynamically binding HTML attributes to JavaScript expressions. It evaluates the expression and automatically updates the attribute when the data changes. This directive is essential for creating reactive interfaces where attributes like src, href, class, or disabled must reflect the application state.
3What is the shorthand syntax for v-bind:href?
What is the shorthand syntax for v-bind:href?
Answer
The shorthand syntax simply uses a colon followed by the attribute name. This shortened notation is very common in Vue projects because it improves code readability while maintaining exactly the same functionality. It works for all HTML and custom attributes.
What is the purpose of the v-on directive?
What is the shorthand syntax for v-on:click?
+19 interview questions
Other Vue.js / Nuxt.js interview topics
JavaScript Fundamentals
Modern JavaScript (ES6+)
Vue Components
Vue Router
Pinia State Management
Vuex (Legacy)
Composition API
Vue Reactivity
Nuxt Fundamentals
Nuxt Data Fetching
Nuxt SSR & SSG
Nuxt Server Routes
Nuxt Modules
Vue Composables
Vue Forms & Validation
Nuxt State Management
Vue Testing
Nuxt Deployment & CI/CD
Vue Performance
Vue Advanced Patterns
TypeScript with Vue
Nuxt Authentication
SEO with Nuxt
Nuxt Internationalization
Vue Architecture
Nuxt Security
Vue Ecosystem
Migration Vue 2→3 & Nuxt 2→3
Master Vue.js / Nuxt.js for your next interview
Access all questions, flashcards, technical tests, code review exercises and interview simulators.
Start for free