Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
@Html.DropDownList("truckclasslst",ViewBag.classes as List<SelectListItem>, new { @class = "js-select2 form-control",@style= "width: 100 %;", ng_model = "t_class.ClassID" })
but , what about angular 2?
In angular 2 we use plain select with *ngFor directive.
<select class="form-control" [(ngModel)]="model.selectedId" name="type"> <option *ngFor="let item of myArray" value="{{item.id}}"> {{item.name}} </option> </select>
Life is a computer program and everyone is the programmer of his own life.