1. Which interpolation syntax is called “Mustache” in Vue?
Mustache syntax {{ }} renders reactive values into templates.
<p>{{ message }}</p>Get the Preplance app for a seamless learning experience. Practice offline, get daily streaks, and stay ahead with real-time interview updates.
Get it on
Google Play
4.9/5 Rating on Store
Vue Js · Question Set
Vue Master Quiz interview questions for placements and exams.
Questions
18
Included in this set
Subject
Vue Js
Explore more sets
Difficulty
Mixed
Level of this set
Go through each question and its explanation. Use this set as a focused practice pack for Vue Js.
Mustache syntax {{ }} renders reactive values into templates.
<p>{{ message }}</p>For complete preparation, combine this set with full subject-wise practice for Vue Js. You can also explore other subjects and sets from the links below.
v-if adds or removes elements from the DOM based on a condition.
v-bind (or :) binds attributes and props to reactive values.
<img :src="avatarUrl">
created runs after instance setup, so data fetches can start early.
Vue 3 renamed it to unmounted; destroyed is Vue 2 terminology.
SSR is supported via Nuxt or Vue SSR tooling, not core runtime.
Vue Router maps URLs to components for single-page navigation.
Vue CLI bootstraps projects with modern tooling and presets.
Use v-on (or @) to listen to DOM events like click or input.
<button v-on:click="save()">Save</button>
Vue.js is a progressive front-end framework for building UIs and SPAs.
v-tooltip is a typical example name for a custom directive.
Computed values are reactive and memoized for performance.
SFCs co-locate template, logic, and styles for a component.
Watchers react to specific data changes to run side effects.
Caching avoids re-running expensive logic on every render.
Directives (like v-if, v-for, v-bind) attach reactive behavior to markup.
Vuex provides a centralized store with predictable state mutations.
v-for iterates items and should use a unique :key for stability.
<li v-for="u in users" :key="u.id">{{ u.name }}</li>