Ensure the project works $ cd project_nameĪnd then run the development server with: $ npm run serve Select to use Vue 3 in the option prompts.Ĥ. Then go to the appropriate local server in a browser, perhaps You now have a fresh Vue 3 application and you can start playing with the Vue 3 Composition API: How to learn the Composition APIįirst and foremost, there’s my Vue 3 Essentials course which teaches all the basics. Then there’s the Composition documentation as well as the API that Evan You posted online. I’d also recommend downloading our Vue 3 Cheat Sheet, which has all the syntax you’ll need to start memorizing the new API. If you’re working with a new application and want to see the API in action quickly, feel free to copy and paste the following code into your App.vue. Notice the setup method is being used, and it worked! A Few Take-Aways Do note the difference in the import line depending on if you’re inside a Vue 3 app or Vue 2 app with the Composition API plugin.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |