我是angularjs的新手并且学习编码。我有三个单选按钮的部分,并尝试禁用其他单选按钮。以下是我的代码
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<div class='info-container-content'>
<div>
<label class="info-container-accent" aria-label="Search By Zipcode and Radius">Search By Zipcode and Radius </label>
<input type="radio" name="selectSearch" ng-model="type" />
<input id="search-text-location" type='text' name='zip-location' ng-disabled="" aria-label="Enter Zip Code" placeholder='Enter Zip Code' ng-model="$ctrl.cservice.locsearch.ZipCode" ng-model-options="modelOptions" />
<select name='zip-radius' aria-label="Radius from Zip Code" ng-disabled="" ng-model="$ctrl.cservice.locsearch.SearchRadius" ng-options="item as item.text for item in $ctrl.cservice.locsearch.SearchRadii track by item.value" ng-model-options="modelOptions"></select>
</div>
<br />
<div>
<label class="info-container-accent" aria-label="Search by County">Search by County</label>
<input type="radio" name="selectSearch" ng-model="type" />
<select name='loc-county' aria-label="County" ng-disabled="" ng-model="$ctrl.cservice.locsearch.County" ng-options="item as item.RegionName for item in $ctrl.cservice.locsearch.Counties track by item.RegionCode" ng-model-options="modelOptions">
<option value="">Select a County</option>
</select>
</div>
<br />
<div>
<label class="info-container-accent" class="info-container-accent" aria-label="Search by Properity Region">Search by Properity Region</label>
<input type="radio" name="selectSearch" ng-model="type" />
<select name='loc-region' aria-label="Region" ng-disabled="" ng-model="$ctrl.cservice.locsearch.Region" ng-options="item as item.RegionName for item in $ctrl.cservice.locsearch.Regions track by item.RegionCode" ng-model-options="modelOptions">
<option value="">Select a Region</option>
</select>
</div>
</div>
请帮助。
答案 0 :(得分:3)
您应该使用@EnableJms
@SpringBootApplication
@EnableAutoConfiguration
@Configuration
@ImportResource("classpath:activemq.xml")
public class Config {}
将每个单选按钮的值设置为样本
ng-value
var app = angular.module("app", []);