Currently I am getting this error:
Duplicate presence of slot "default" found in the same render tree - this will likely cause render errors.
Although there are some examples on how to fix this I don't know exactly how to resolve this in my case.
This is the markup I am using in my PHP file for my search component.
<search>
<form action="#" class="form-inline">
<div class="form-group">
<label for="number_persons">Persons</label>
<select class="form-control" name="num_persons">
<etc>
</select>
</div><!-- /.form-group -->
</form>
</search>
My .vue
search component has a template that looks like this:
<template>
<div class="item" v-for="item in items">
<div class="alert alert-warning" v-show="prices">
<slot></slot>
</div>
<pagination></pagination>
</div><!-- /.items -->
</template>
From the documentation I see you are to use something like scoped slots? I have tried implementing them but I can't get it to work. I have simply tried adding scope to the form
in the PHP file and the vue component.
Can anybody possibly tell me what syntax to use in this case?
Updated example from @Cobaltway