Computed Vs Methods Vs Watch

Computed Properties allows you to define auto calculated properties based on other properties. For example, you could have properties firstName and lastName, from which you could create a new property, fullName, which gets updated each time either firstName or lastName changes. For example, data() { return { firstName: "", lastName: "", }; }, computed: { FullName: function() { return this.firstName.concat(this.lastName); }, } The FullName property would be … Continue reading Computed Vs Methods Vs Watch