Methods in Vue.js

Learn more about "methods" in a Vue.js instance.

We'll cover the following

The methods property in the Vue instance contains the definitions of all the functions that the Vue instance can perform. This is similar to vanilla JavaScript methods/functions as they can also be defined anywhere and can be called when needed or when a specific event occurs. However, in the Vue instance, its functions can only be defined in the methods property.

Get hands-on with 1200+ tech skills courses.