Relative Content

Tag Archive for javascripttypescriptsveltesvelte-store

How to bind Svelte Store when the value inside object?

I have custom component InputGroup. It can render checkbox or radio type of input. The selected value is always Svelte Store. But the first store is top of scope, the second inside object. I use $: bind:group={$selectedStore}. Because my version of Svelte have not syntax $rootObject.svelteStore.value, only have $svelteStore.value.