0👍
Use a computed instead of a method. Your method will not re-run except you call it. A computed will update by itself
- [Vuejs]-Cannot figure out how to assign a callbacks return value into another property (Vue.js)
- [Vuejs]-How get one single component (carousel) from element-ui if is imported as global config object?
Source:stackexchange.com