Vue Component Setup

Posted on  by admin
You can easily setup your Vue Class Component project by using Vue CLI.

Run the following command to create a new project:. You will be asked whether using preset or not. Select "Manually select features":. Check TypeScript feature to use Vue Class Component.

You can add other features in addition if you need:. Press y for the question Use class-style component syntax?:. You can answer the remaining questions as your preferences. After finishing this setup process, Vue CLI creates a new project directory with Vue Class Component installed.

Clifton LabrumClifton Labrum

You can use yarn command if you prefer:. To use Vue Class Component, you need to configure TypeScript or Babel in your project as it relies on ECMAScript stage 1 decorators which is needed to transpile to run on browsers.

Giving Todos a unique id


Not the answer you're looking for? Browse other questions tagged javascriptvue.jsvuejs3vue-composition-api or ask your own question.