Single File Components

Learn about single file components in Vue.js.

Single File Components

Vue offers the flexibility to define components in separate files. These files have the .vue extension and contain everything related to that component. .vue files contain three main parts:

  1. <template>
  2. <script>
  3. <style

Get hands-on with 1400+ tech skills courses.