One page
Vue cheat sheet
What to keep at hand. If a line is not clear, go back to the matching lesson in the course.
Open the course: Vue: getting startedSFC
| What | How |
|---|---|
| Template | <template>…</template> |
| Logic | <script setup> |
| Styles | <style scoped> |
| Text | {{ name }} |
Reactivity
| What | How |
|---|---|
| ref | n.value in the script, {{ n }} in the template |
| Event | @click="inc" |
| List | v-for + :key |
| Formula | computed(() => …) |
| Field | v-model |
| Up | emit("saved") |