3 ms·
having js code in html attribute is not something I want (`@click="count--"`) I'd rather have longer, actual js code as a trade-off
by audessuscest 3y ago
having js code in html attribute is not something I want (`@click="count--"`) I'd rather have longer, actual js code as a trade-off
- tipiirai 3y agoYou can call an instance method as well, as seen on the examples. Similar to what you can do in Vue and with a standard JS 'onclick' handler.