【发布时间】:2018-07-30 21:21:05
【问题描述】:
我有两个复选框,当第二个被点击时,一个被禁用。我已经在 angularjs 中完成了它,但不能在 angular 5 项目中做同样的事情?
<li>
<div class="checkbox-inline">
<input type="checkbox" class="notWorking" ng-model="body.NotWorkShift" ng-disabled="body.All"/>
<label translate >Notworkshift</label>
</div>
</li>
<li>
<div class=" checkbox-inline ">
<input type="checkbox" class="allCars" ng-model="body.All" />
<label translate>AllCars</label>
</div>
</li>
【问题讨论】: