Last active
June 24, 2021 23:15
-
-
Save armchair-traveller/9e60d9f5199d236592f8526e9dfa25f8 to your computer and use it in GitHub Desktop.
[Svelte] Attach components to classes/objects for use in template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
import Menu from "./Menu" | |
</script> | |
<Menu> | |
<!-- the Items component on the Menu component's (class) Items property --> | |
<Menu.Items /> | |
</Menu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello world! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment