如何在更新表单时获取旧的选定选项值(使用Vue)?
我的观点:
<div class="well" id="app">
<div class="form-group">
<label>Room category</label>
<select class="form-control" name="room_category_id">
<option style="display: none" value="">Attach a room category to a room</option>
@foreach($room_categories as $room_category)
<option value="{{ $room_category->id }}">{{ $room_category->name }}</option>
@endforeach
</select>
</div>
</div>
在Angular中,我曾经使用ngSelected
执行此操作,如何使用VueJS进行此操作?