docs: clarified readonly prop access (#5825)

pull/6459/head
EmNudge 4 years ago committed by GitHub
parent f797482e27
commit 0e18b1311e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -57,6 +57,8 @@ In development mode (see the [compiler options](docs#svelte_compile)), a warning
If you export a `const`, `class` or `function`, it is readonly from outside the component. Function *expressions* are valid props, however.
Readonly props can be accessed as properties on the element, tied to the component using [`bind:this` syntax](docs#bind_element).
```sv
<script>
// these are readonly

Loading…
Cancel
Save