On window resize, I have tried to add dynamic height as style property in div element, using svelte special element <svelte:window bind:innerHeight /> but I am not getting the proper result which I am looking for, Is there anything I missed.
Code:-
<script>
var innerHeight;
</script>
<svelte:window bind:innerHeight={innerHeight} />
<div style="height: {innerHeight};">
<h1>window height : {innerHeight}</h1>
</div>
Output:-
Thanks in advance