sveltefire icon indicating copy to clipboard operation
sveltefire copied to clipboard

How to loop through a sub collection?

Open bostondevin opened this issue 4 years ago • 1 comments

How do you use Collection to loop through an array of referenced sub items?

bostondevin avatar Mar 02 '21 01:03 bostondevin

I think this is in the example in the readme? ` <Collection ref={postRef.path + '/comments'} let:data={comments}> {#each comments as comment}

            {/each}`

Kainkainkain avatar Mar 06 '23 01:03 Kainkainkain