Merge branch 'master' of github.com:sveltejs/svelte

pull/3141/head
Richard Harris 5 years ago
commit 220515b605

@ -176,6 +176,8 @@ You can `export` bindings from this block, and they will become exports of the c
You cannot `export default`, since the default export is the component itself.
> Variables defined in `module` scripts are not reactive — reassigning them will not trigger a rerender even though the variable itself will update. For values shared between multiple components, consider using a [store](https://svelte.dev/docs#svelte_store).
```html
<script context="module">
let totalComponents = 0;

@ -354,7 +354,7 @@ The `{@debug}` tag without any arguments will insert a `debugger` statement that
As well as attributes, elements can have *directives*, which control the element's behaviour in some way.
#### [on:*eventname*](on_component_event)
#### [on:*eventname*](on_element_event)
```sv
on:eventname={handler}

Loading…
Cancel
Save