Skip to content

Commit

Permalink
Update <svelte:options> copy (#6339)
Browse files Browse the repository at this point in the history
<svelte:options> is not the last lesson in "Special Elements"
  • Loading branch information
JitPackJoyride authored May 18, 2021
1 parent 58b897f commit b11f5b1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: <svelte:options>
---

Lastly, `<svelte:options>` allows you to specify compiler options.
The `<svelte:options>` element allows you to specify compiler options.

We'll use the `immutable` option as an example. In this app, the `<Todo>` component flashes whenever it receives new data. Clicking on one of the items toggles its `done` state by creating an updated `todos` array. This causes the *other* `<Todo>` items to flash, even though they don't end up making any changes to the DOM.

Expand All @@ -27,4 +27,4 @@ The options that can be set here are:
* `namespace="..."` — the namespace where this component will be used, most commonly `"svg"`
* `tag="..."` — the name to use when compiling this component as a custom element

Consult the [API reference](docs) for more information on these options.
Consult the [API reference](docs) for more information on these options.

0 comments on commit b11f5b1

Please sign in to comment.