Skip to content

Commit

Permalink
fix events example (#651)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljmerza authored and justinfagnani committed Apr 15, 2019
1 parent 62499f1 commit 2bf7672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_guide/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ To handle an event fired by a LitElement-based component that you're using on an
To handle a custom event fired by a LitElement-based component from inside another LitElement template:

```html
<my-element @my-event="${() => { console.log(event.detail.message) }}"></my-element>
<my-element @my-event="${(e) => { console.log(e.detail.message) }}"></my-element>
```

## Working with events and shadow DOM
Expand Down

0 comments on commit 2bf7672

Please sign in to comment.