|
|
@ -36,6 +36,9 @@ Svelte uses the `export` keyword to mark a variable declaration as a *property*
|
|
|
|
export let foo;
|
|
|
|
export let foo;
|
|
|
|
export let bar = 'optional default value';
|
|
|
|
export let bar = 'optional default value';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// this property is readonly externally
|
|
|
|
|
|
|
|
export const buzz = 'buzz';
|
|
|
|
|
|
|
|
|
|
|
|
// Values that are passed in as props
|
|
|
|
// Values that are passed in as props
|
|
|
|
// are immediately available
|
|
|
|
// are immediately available
|
|
|
|
console.log(foo, bar);
|
|
|
|
console.log(foo, bar);
|
|
|
|