Skip to content

v0.8.0

Compare
Choose a tag to compare
@buschtoens buschtoens released this 15 Mar 10:11
· 250 commits to master since this release

Description

This release adds support for passing through parameters to the event listener, just like with {{action}}.

<button {{on "click" this.onClick "foo" "bar"}}>Click me</button>
export default class extends Component {
  @action
  onClick(foo: string, bar: string, event: MouseEvent) {
    console.log({ foo, bar, event }); // => { foo: "foo", bar: "bar", event: Event { ... } }
  }
}

Features

  • #19: feat: pass through additional parameters (#20)

Changes

v0.7.0...v0.8.0