Computed Properties

Learn about computed properties and how they differfrom methods.

Sometimes properties that are based on or calculated from some other properties or data variables are needed. For instance, extracting age from “Date of Birth”. Similarly, calculating the total number of employees in a company is only achieved by having a list of all the employee names. To perform such tasks, Vue.js provides computed properties. The following is an executable example of a Vue app that has the list of employee names as a data variable. The total number of employees are computed using the computed property:

Get hands-on with 1400+ tech skills courses.