I vount to create template which @include or @yield another template, line in .blade files.
If I create and import template component and insert it in components block, I must using v-model or v-bind to pass the data into. But I want inject the template code, and not to just bind data
<template>
<div>
<template id="super-block-1">
</template>
<template id="super-block-2">
</template>
<div id="main">
<div id="block-1">
<!-- INSERT super-block-1 HERE -->
<!-- like: @yield('') -->
</div>
<div id="block-2">
<!-- INSERT super-block-2 HERE -->
<!-- like: @yield('') -->
</div>
</div>
</div>
</template>
<script>
export default {
......
}
</script>
How can I do this thing?
Thanks!
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire