special tag
1. the @debug tag
<script>
let user = {
firstname: 'Ada',
lastname: 'Lovelace'
};
</script>
<input bind:value={user.firstname}>
<input bind:value={user.lastname}>
{@debug user}
<!-- {(console.log(user), '')} 대신..사용 -->
<h1>Hello {user.firstname}!</h1>
'Web과 프로그래밍 언어 > JavaScript' 카테고리의 다른 글
[SVELTEKIT] 스벨트킷 튜토리얼 SVELTEKIT tutorial - Routing, Pages (0) | 2023.03.24 |
---|---|
[SVELTEKIT] 스벨트킷을 시작해보자! (youtube) (0) | 2023.03.24 |
[SVELTE] Module context- Sharing code, Exports (0) | 2023.03.17 |
[SVELTE] Special elements - svelte:self, component, element, window, window bindings, document, body, head, options, fragment (0) | 2023.03.17 |
[SVELTE]Context API- setContext and getContext (0) | 2023.03.17 |