Hi All,
I have this page running in IE 8 in Compatibility View mode:
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body { color: #444; font-family: sans-serif; line-height: 1.41em; }
</style>
<script type="text/javascript" src="
http://cdnjs.cloudflare.com/ajax/libs/json2/20121008/json2.js"></script>
<script type="text/javascript" src="
http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="
http://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.min.js"></script>
<script type="text/javascript">
var data = [
{a: 1, b: 2, c: true},
{a: 3, b: 4, c: false}
];
function UniqueController($scope) {
$scope.data = [];
$scope.getData = function() {
$scope.data = data;
};
}
angular.module("myApp", []);
</script>
</head>
<body id="ng-app" ng-app="myApp" ng-controller="UniqueController">
<button ng-click="getData()">Get Data</button>
<table>
<tr><td>a</td><td>b</td><td>radio button</td></tr>
<tr ng-repeat="d in data">
<td>{{d.a}}</td>
<td>{{d.b}}</td>
<td><input type="radio" name="myradio" ng-disabled="d.c"/></td>
</tr>
</table>
</body>
</html>
I want to have the radio button on a row disabled if the value of c on that row is true. However it doesn't work that way.
I think this issue was asked before but I couldn't find it (maybe I used the wrong keyword to search).
Regards.