私はregion
で時計を持っていますが、ラジオボタンをクリックしても発砲していません。角度のラジオボタンが時計で点滅しない
何か間違っているのですか、ラジオボタンが角度を変えて一度だけ変化するのですか?とにかくフォームを使わずにこの周り?
<div class="filter-column">
<div class="filter-title">Region</div>
<div class="bottom-line"></div>
<div class="overflow-container">
<div ng-repeat="choice in regions| orderBy: 'description'">
<input type="radio"
value="{{choice.name}}"
name="regionRadio"
ng-model="region">
{{choice.description}}
</div>
</div>
</div>
$scope.$watchCollection(watchRMDapisPopulate,
populateRMDfiltersView);
function watchRMDapisPopulate() {
return regionMarketDealerSrv.orgFilterData;
}
function populateRMDfiltersView(newValue, oldValue) {
if (newValue) {
$scope.regions = newValue.regions;
}
}
$scope.$watch('region', radioButtonRegion);
function radioButtonRegion(regionName) {
console.log(regionName)
if (regionName === 'All') {
regionMarketDealerSrv.populateRegions();
} else {
regionMarketDealerSrv.populateMarkets(regionName);
}
}
は{{選択」= NG-値をする= "{{choice.name}}" の値を変更しよう.name}} " –
はそれを' ng-value'に変更しましたが、まだ成功しませんでした。 'console.log(regionName)'は出力されません。 – dman
関数をウォッチ式として使用するのはどうですか? $ scope(function(){return $ scope.region;}、radioButtonRegion) –