I'm new with AngularJS, found this binding to radio button in documentation (http://docs.angularjs.org/api/ng.directive:ngValue) and then tried to change it to button but then it doesn't work anymore ?!
It is a very simple selector, when you select radio button it displays what you've selected, but when you click the same button it doesn't do anything.
VIEW:
<input type="radio" ng-model="selected.0" ng-value="item" ng-repeat="item in items" for="{{item}}">{{ item }}
<input type="button" ng-model="selected.0" ng-value="item" ng-repeat="item in items" for="{{item}}" >
<br>selected: {{selected.0}}
CONTROLLER:
$scope.items = ['settings', 'home', 'other'];
$scope.selected = [''];
ng-clickfor the button - tymeJV