0👍
In the context of Vue, values’ being reactive means that their state (properties) are tracked and their setter
s are intercepted to trigger re-rendering.
In contrast, methods of components are not reactive, because changing their properties doesn’t trigger re-rendering.
In your sample, you don’t change properties of iAmAMethod
method, but you change the counter
data which is reactive. That’s why Vue re-renders the template.
- [Vuejs]-How to bind image src path to backend data in vue js
- [Vuejs]-JQuery function vs Vue JS – for UI component development
Source:stackexchange.com