I have a blade in my laravel project that is instantiating a vue component, which loads and operates fine. The problem now is that I'm trying to call a method in my vue component from a select box in the blade and it isn't registering.
As you can see below, I have a method call that should log to the console but when I change the select in the blade it doesn't log in the console, no errors either.
What am I doing wrong?
blade.php
<div style="display:flex; justify-content: space-between; align-items: center;" class="col-lg-4">
<select @change="filterItem" style="border:none; border-bottom: 1px solid gray">
<option>Open</option>
<option>Closed</option>
<option>Paused/Waiting on user</option>
</select>
</div>
<div>
<elastic-search-autocomplete></elastic-search-autocomplete>
</div>
elasticSearchAutocomplete.vue
methods: {
filterItem(){
console.log('this is coming from the blade');
},
}
.......
<select>
be in your component? AndfilterItem
is not the same ascreateItem
– brombeer