docs: fix self-closing <svelte:options> tag (#4524)

pull/4539/head
keke 5 years ago committed by GitHub
parent fd378f2d37
commit 48721520bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -974,7 +974,7 @@ app.count += 1;
Svelte components can also be compiled to custom elements (aka web components) using the `customElement: true` compiler option. You should specify a tag name for the component using the `<svelte:options>` [element](docs#svelte_options). Svelte components can also be compiled to custom elements (aka web components) using the `customElement: true` compiler option. You should specify a tag name for the component using the `<svelte:options>` [element](docs#svelte_options).
```html ```html
<svelte:options tag="my-element"> <svelte:options tag="my-element" />
<script> <script>
export let name = 'world'; export let name = 'world';

Loading…
Cancel
Save