I have the following example code: This is a vuejs environment with a component called modal. I would like to add a slot for a specific area inside the modal template and add a prop value (in this Example 'modalId') to this slot. But that just doesn't dispay - do nothing happens.
<template id="modalTemplate">
<div class="modal fade" :id="modalId" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">@{{ modalHeader }}</h4>
</div>
<div class="modal-body">
<div v-show="errors !== false" class="alert alert-warning">
<div v-for="error in errors">
@{{ error }}
</div>
</div>
<slot></slot>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" v-on:click="this.$dispatch('handleform', mData)">Save changes</button>
</div>
</div>
</div>
</div>
</template>
<modal v-ref:modal :active="active" error="" v-on:handleform="addMember" modal-id="modalAdd" modal-header="Mitglied hinzufügen" :m-data="newMember">
@{{ modalId | json }}
</modal>