v0.8.0
Description
This release adds support for passing through parameters to the event listener, just like with {{action}}
.
export default class extends Component {
@action
onClick(foo: string, bar: string, event: MouseEvent) {
console.log({ foo, bar, event }); // => { foo: "foo", bar: "bar", event: Event { ... } }
}
}