I want a function to be called using Vue when a user selects an option from a dropdown list. I've started with a really simple example, but i can't seem to get it to work. I have no console errors or errors highlighted in WebStorm, so i'm unsure where i'm going wrong.
Here's my code:
<template>
<b-container>
<b-row>
<b-col>
<div>
<b-dropdown id="ddown4" text="Product Type" class="m-md-2" v-on:change="FilterProduct">
<b-dropdown-item>4.5</b-dropdown-item>
<b-dropdown-item>10.5</b-dropdown-item>
</b-dropdown>
</div>
</b-col>
</b-row>
</b-container>
</template>
<script>
export default {
name: 'ProductFilters',
methods:{
FilterProduct(){
alert('Yes!');
}
},
data() {
return {
}
}
}
</script>