0👍
the on
property expects a plain object, not a class instance. To be precise, Vue uses for .. in
to loop over the properties of that object, and that doesn’t work on class methods.
Why would you even use a class here?
- [Vuejs]-Getting typerror in Vue JS while trying to bind the JSON data in select model
- [Vuejs]-Changing style of map elements dynamically
Source:stackexchange.com