How do I use TypeScript in Vue project?

Actually, you can also implement TypeScript one file at the time with Vue (if you add it to an existing project). You take one of your Vue files and add the lang=”ts” inside the script tag . Then you modify your component to use the Class API and fix the potential errors TypeScript found. It’s really easy!

Read more

What are Vuex actions?

In Vuex, actions are functions that call mutations . Actions exist because mutations must be synchronous, whereas actions can be asynchronous. You can define actions by passing a POJO as the actions property to the Vuex store constructor as shown below. To “call” an action, you should use the Store#dispatch() function.

Read more