Also should mention that Computed Properties are automatically cached while Methods are not.
If you are running an 'expensive' operation, it is best to cache this data as a Computed Property or else the function will re-run everytime the page refreshes which creates unnecessary overhead.
For larger applications Computed Properties are typically used in conjunction with Vuex to help access global application data as well.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Also should mention that Computed Properties are automatically cached while Methods are not.
If you are running an 'expensive' operation, it is best to cache this data as a Computed Property or else the function will re-run everytime the page refreshes which creates unnecessary overhead.
For larger applications Computed Properties are typically used in conjunction with Vuex to help access global application data as well.