Skip to content

Commit 2c7c1e6

Browse files
authored
chore: add tests for slot binding (#602)
1 parent e1c6a8a commit 2c7c1e6

14 files changed

+4485
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"parser": "typescript-eslint-parser-for-extra-files"
3+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<script lang="ts">
2+
let foo = { prop: true };
3+
</script>
4+
5+
<slot {foo}></slot>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<script lang="ts">
2+
import Component from "./ts-slot-binding01-input-child.svelte";
3+
</script>
4+
5+
<Component>
6+
<div let:foo={bar}>{bar.prop}</div>
7+
</Component>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy