From b337e528ce05528e4ff5927ce5d51125465f059a Mon Sep 17 00:00:00 2001 From: vages Date: Sat, 10 Aug 2019 16:18:03 +0000 Subject: [PATCH 1/2] Document $$props This was explained in the tutorial, but I could not find any documentation on it in the docs. --- site/content/docs/02-template-syntax.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/site/content/docs/02-template-syntax.md b/site/content/docs/02-template-syntax.md index ae07c90993..aaa052df3b 100644 --- a/site/content/docs/02-template-syntax.md +++ b/site/content/docs/02-template-syntax.md @@ -94,6 +94,12 @@ An element or component can have multiple spread attributes, interspersed with r ``` +*`$$props`* references all props that are passed to a component – including ones that are not declared with `export`. It is useful in rare cases, but not generally recommended, as it is difficult for Svelte to optimise. + +```html + +``` + ### Text expressions From e45e873a0166ce2ff8bf73ab1e407605de1df36f Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sun, 11 Aug 2019 10:24:20 -0400 Subject: [PATCH 2/2] add separator --- site/content/docs/02-template-syntax.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/site/content/docs/02-template-syntax.md b/site/content/docs/02-template-syntax.md index aaa052df3b..600634ab11 100644 --- a/site/content/docs/02-template-syntax.md +++ b/site/content/docs/02-template-syntax.md @@ -94,6 +94,8 @@ An element or component can have multiple spread attributes, interspersed with r ``` +--- + *`$$props`* references all props that are passed to a component – including ones that are not declared with `export`. It is useful in rare cases, but not generally recommended, as it is difficult for Svelte to optimise. ```html