adjust docs

pull/2825/head
Conduitry 6 years ago
parent 5ecdc52a61
commit b274e4598f

@ -366,11 +366,13 @@ Components can emit events using [createEventDispatcher](docs#createEventDispatc
<SomeComponent on:whatever={handler}/>
```
It's also possible to have multiple event listeners that react on the same event:
---
It's possible to have multiple event listeners for the same event:
```html
<script>
let counter;
let counter = 0;
function increment() {
counter = counter + 1;
}
@ -380,8 +382,8 @@ It's also possible to have multiple event listeners that react on the same event
}
</script>
<button on:click="{increment}" on:click="{track}">Click me!</button>
```html
<button on:click={increment} on:click={track}>Click me!</button>
```
---

Loading…
Cancel
Save