Computed Properties

Computed properties allow you to define properties that automatically update when their dependencies change.

Snippet:

computed: { fullName() { return this.firstName + " " + this.lastName; } }

Example:

data() { return { firstName: "John", lastName: "Doe" }; }