Skip to main content
Create new
Introduction
Reactivity
Props
Logic
Events
Bindings
Lifecycle
Stores
Motion
Transitions
Animations
Easing
SVG
Actions
Classes
Component composition
Context API
Special elements
Module context
Debugging
7GUIs
Miscellaneous
App.svelte
Link.svelte
<script>
// all links should be red
import Link from './Link.svelte'
let foo = [
{ text: 'foo0' },
{ text: 'foo1' },
{ text: 'foo2' },
{ text: 'foo3' },
]

</script>
<Link item={({ text: 'foo_working' })}/>
<Link item={foo[0]}/>
<Link bind:item={foo[0]}/>
<hr>
{#each foo as item}
<Link bind:item/>
{/each}
loading Svelte compiler...
/* Select a component to see its compiled code */
result = svelte.compile(source, {
generate: ,
});
/* Select a component to see its compiled code */