【发布时间】:2018-06-12 07:19:07
【问题描述】:
我正在使用 Angularjs。
HTML:
<select name="questionId1" ng-model="abCtrl.form.questionSel.q1" ng-options="question.val for question in abCtrl.form.questions track by question.index"></select>
<select name="questionId2" ng-model="abCtrl.form.questionSel.q2" ng-options="question.val for question in abCtrl.form.questions track by question.index"></select>
我希望用户选择的选项将被禁用以用于其他选择,反之亦然
【问题讨论】:
-
为什么不使用两种不同的模型?
标签: angularjs ng-options angularjs-select