두 개의 선택을 할 수 있습니다. 두 개의 선택에서 값을 선택했을 때 버튼을 활성화하고 싶습니다. 어떻게 할 수 있을지 모르겠습니까?두 개의 값을 선택한 경우 버튼을 활성화하십시오.
내 HTML : 당신은 ng-disabled
지시어를 사용하여이 작업을 수행 할 수
<div ng-app="myapp">
<fieldset ng-controller="FirstCtrl">
<select
ng-options="people.first for people in people_1"
ng-model="selectedPerson1"></select>
<select
ng-options="people.first for people in people_2"
ng-model="selectedPerson2"></select>
</fieldset>
<br/><button class="btn btn-primary" ng-click="platform=true">Comparer</button>
</div>