0👍
You should implement this by using methods
, not data
.
data
is helping you to store something rather than handle some actions.
In methods, you can call this.xxx to get the properties from data
or property
👤Junv
Source:stackexchange.com