I have prop "cat"
props: ['cat1'],
Ant this piece of code
<select class="form-control" @change="set_category">
<option value="" disabled>Please select category</option>
<option v-for="category in categories"
:value="category"
:selected="cat1 == category.url">{{ category.name}}
</option>
</select>
So this code is called when page its loading and the problem is, that after loading the page option changes but it doesn't triggers @change event, ant because of it i can't actually track which option was selected on page load. I tried alot versions with v-model ant etc but it sees i just stuck on it..
cat1when the user selects an option?