Created
August 17, 2018 00:47
-
-
Save mhartington/0778298a63fb1b476ac9a5627ea327a1 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
<div> | |
<!-- a named slot --> | |
<slot name="start"></slot> | |
<p>Here is content from in the component</p> | |
<!-- default slot, will be used by default --> | |
<slot></slot> | |
</div> | |
<my-component> | |
Getting passed into the default slot | |
<p slot="start"> I'll get rendered in the "start" slot</p> | |
</my-component> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment