0
篩選HTML表格上的默認下拉值在頁面LAOD這是我的選擇我如何angularjs
<select class="viewcombobox" ng-model="search.view_nm">
<option ng-repeat="tab in CompetRx | unique:'view_nm'" value="{{tab.view_nm}}">{{tab.view_nm}}</option>
</select>
下拉值是每週&每月
這是我的表
<table>
<tr> <th> Brand </th> </tr>
<tr ng-repeat="tab in CompetRx | filter:search.view_nm >
</table>
初始頁面加載時,如何在同一時間將「每週」設置爲下拉列表中的默認值,它應該相應地過濾表格
立即幫助表示讚賞!