我有一个select下拉列表,我通过循环从一个数组中获取option的数据和值。在这里,我需要在没有onchange的情况下加载页面时获取selected drop的值(在本例中是Recent)。app.component.html <select>
<option *ngFor="let v of values" [value]=&quo
在我的项目中,我在一个Angular html页面中有一个下拉列表和一个文本框。从下拉列表中我选择了一个选项,在选择该选项后,它被绑定到textbox。稍后我需要更改textbox的值并提交它。我需要最新的更改按钮上的值点击提交。如何在提交时获取最新值?<select ng-model="val" ng
我的angular代码中有这个下拉列表: <select class="selected_location" ng-options="perlocation.id as perlocation.name for perlocation in locations" ng-model="cleaningService