-
-
Save wycats/b67eb065e5862902a7ee to your computer and use it in GitHub Desktop.
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
<template instantiate> | |
<import tags="my-button" from="source"></import> | |
<!-- the template is never actually instantiated until the imports have loaded. --> | |
<my-button></my-button> | |
</template> | |
<!-- crazier, more fleshed out stuff --> | |
<template instantiate> | |
<import tags="my-button" from="source"> | |
Fallback content while loading | |
</import> | |
</template> | |
<template instantiate> | |
<import> | |
<tags named="my-button" from="source"></tags> | |
<tags named="my-textarea" from="othersource"></tags> | |
<loading> | |
Fallback content while loading | |
</loading> | |
<error> | |
Fallback content when error | |
</error> | |
</import> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment