Wow, this is so great! Thanks for this writeup and demo, it really saved me a ton of time. Also, there's a small typo/bug — in your complete implementation: <slot name="footer" {store}>
<slot name="footer" {store}>
should say: <slot name="footer" {close}>
<slot name="footer" {close}>
in order to properly expose the close method.
Cheers and thanks!
Thank You for noticing, Fixed It, by updating its usage:-
<div slot="footer" let:store={{close}}> <button on:click={close}>Close First Modal</button> </div>
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Wow, this is so great! Thanks for this writeup and demo, it really saved me a ton of time. Also, there's a small typo/bug — in your complete implementation:
<slot name="footer" {store}>
should say:
<slot name="footer" {close}>
in order to properly expose the close method.
Cheers and thanks!
Thank You for noticing,
Fixed It, by updating its usage:-