I wish to create something like this:
<select class="form-control" ([ngModel])="selectedWorkout" (ngModelChange)="updateWorkout($event)" #selectList="ngModel">
<option value="44">Pick me!</option>
</select>
Using Html.DropDownFor in razor. How can I do that? Specifically, how do I add in ([ngModel]), (ngModelChange), and #selectList?
My dropdownfor is like:
@Html.DropDownListFor(m => m.itemId, Model.itemList, new { @class = "form-control" })
DropDownListForis a method executes in the server. It has no idea about your angular modal or even what client side framework/library you are using at that time.