0👍
✅
Its because you have not defined any method with name change()
. @change
event expects a method named change()
in your code. But I guess you are trying to execute changeStatus()
method when toggle button is changed. Changing your code to @change="changeStatus()"
should fix the problem.
Source:stackexchange.com