radio buttons in angular
http://angularjs.org/
HTML
<script src="http://code.angularjs.org/angular-1.0.1.js"></script>
<div ng-controller="MyCtrl">
<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>
</div>
JavaScript
var myApp = angular.module('myApp',[]);
//myApp.directive('myDirective', function() {});
//myApp.factory('myService', function() {});
function MyCtrl($scope) {
$scope.update = function(value){
console.log("the click value is"+value)
}
}