我有一个带两个单选按钮的HTML。
<div data-toggle="buttons">
<label class="btn active">
<input type="radio" ng-model="value" value="ongoing" ng-change="update(value)">Ongoing
</label>
<label class="btn">
<input type="radio" ng-model="value" value="completed" ng-change="update(value)">Past
</label>
</div>
当我切换单选按钮时,js文件中的方法没有被调用。
JS
$scope.update = function(value){
console.log("the click value is"+value)
}