hi im using vuejs and laravel this is my vuejs code
Vue.component('search_and_select',{
template:
'<div>'+
'<slot :test_text="test_text" :update_test_text="update_test_text"></slot>
'</div>',
data:function(){
return {
test_text:null,
}
},
methods: {
update_test_text(value) {
this.test_text = value
}
}
});
and this is html code
<search_and_select>
<div slot-scope="{ test_text, update_test_text }">
<input
type="text"
:value="test_text"
@input="update_test_text($event.target.value)"
>
</div>
</search_and_select>
like this everything working so good so far .. but if i tried to include page like this ..
@include('treats.text_values') // laravel blade
and inside treats.text_values i did this ..
<input
type="text"
:value="test_text"
@input="update_test_text($event.target.value)"
>
its not working so how can i access vuejs using include in laravel .. thanks a lot
idof blade