vue default slot
v-slot not rendering along side default slot #1868
v-slot not rendering along side default slot #1868
v-slot not rendering along side default slot #1868 vue default slot Btw, apologies for the syntax highlighting, it struggles a bit with Vue! Default slots This is the most basic of slots It takes the content vue slotscope I have two components, one that passes a string value innerHTML to my custom Component MySub In MySub i wants to use the default slot to do
vue slotscope Props use : The slot to bind on, you must provide a use via $slots {your_slot} in template> Type: Vue slot Function; Example: $
vue slot class Notice that the order of the texts rendered corresponds to the slots arranged in the child component The unnamed slot acts as the default slot Scoped Slots According to the vue2 docs you can but do not have to specify the default slot in a template My test is as follows: import { shallowMount } from @vuetest