Put in order · Vue.js course · Module 1: Vue and Vite

Section order in SFC

Arrange the sections of a .vue file in the order used at NOVA LAB:

Items to put in order

  • <script setup> - JavaScript logic
  • <style scoped> - CSS styles
  • <template> - HTML structure
Show the answer

Correct order:

  1. <template> - HTML structure
  2. <script setup> - JavaScript logic
  3. <style scoped> - CSS styles