Update 01-component-format.md

The previous statement does not work (see https://github.com/sveltejs/svelte/issues/2510)
I'm not able to fix it, so instead, let's just update the documentation :-)
pull/4211/head
Alexandre Plennevaux 6 years ago committed by GitHub
parent ff4a38be96
commit c45e36e6f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -119,7 +119,9 @@ Any top-level statement (i.e. not inside a block or a function) can be made reac
// this will update `document.title` whenever // this will update `document.title` whenever
// the `title` prop changes // the `title` prop changes
$: document.title = title; $: {
document.title = title;
}
$: { $: {
console.log(`multiple statements can be combined`); console.log(`multiple statements can be combined`);

Loading…
Cancel
Save