Function references
<element click.call="myFunction(arg1, arg2)"></element>How It Works
Examples
Basic usage
<button click.call="greet('World')">Say Hello</button>export class MyViewModel {
greet(name) {
alert(`Hello, ${name}!`);
}
}Passing Event Object
Tips
Last updated
Was this helpful?