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:
- <template> - HTML structure
- <script setup> - JavaScript logic
- <style scoped> - CSS styles