Share mode between radio buttons
Description
The following code shows how to Share mode between radio buttons.
Example
<!DOCTYPE html>
<html ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular.js"></script>
</head><!--from www. java2 s. c o m-->
<body>
<div ng-app>
<input type="radio" ng-model="people" value="1"><label>1</label>
<input type="radio" ng-model="people" value="2"><label>2</label>
<input type="radio" ng-model="people" value="3"><label>3</label>
<ul>
<li>{{10*people}}?</li>
<li>{{8*people}}?</li>
<li>{{30*people}}?</li>
</ul>
</div>
</body>
</html>