0👍
Normally you should not mix razor and vue at the same page. You may have hard time keeping things right. Both do the same end of the day. But If you are in SPA then vue will be more flexible.
You can do it without vue.
<select asp-for="selectedHeader" class="form-control" asp-items="ViewBag.Headers" class="select">
<option value="">Choose Header</option>
</select>
- [Vuejs]-Upgrade component from option api to composition api (this.$parent)
- [Vuejs]-How can I use component specific attributes on dynamic components in Vue.js?
Source:stackexchange.com