1
각도로 기본 선택 값을 만들려고했지만 단순히 운이 없습니다. 컴파일하기 전에기본 선택 값이 ng-init을 사용하여 작동하지 않습니다.
HTML : 브라우저의 소스에서
이<select ng-options="select.Value as select.Name for select in ruleSelect" ng-model="rule.MatchLogic" ng-init="rule.MatchLogic = 0" ></select>
HTML :
<select ng-options="select.Value as select.Name for select in ruleSelect" ng-model="rule.MatchLogic" class="ng-pristine ng-valid">
<option value="?" selected="selected"></option>
<option value="0">All</option>
<option value="1">At Least</option>
<option value="2">At Most</option>
</select>
어떻게 값 = 0 (모든) 기본 선택 값을 다하겠습니다.