angular.inputType.radio

Description

HTML radio button.

Usage

<input type="radio"
       ng:model="..."
       value="..."
       [name="..."]
       [ng:change="..."]>

Parameters

Example

 <script>
   function Ctrl() {
     this.color = 'blue';
   }
 </script>
 <div ng:controller="Ctrl">
   <form name="myForm">
     <input type="radio" ng:model="color" value="red">  Red <br/>
     <input type="radio" ng:model="color" value="green"> Green <br/>
     <input type="radio" ng:model="color" value="blue"> Blue <br/>
   </form>
   <tt>color = {{color}}</tt><br/>
 </div>
  it('should change state', function() {
    expect(binding('color')).toEqual('blue');

    input('color').select('red');
    expect(binding('color')).toEqual('red');
  });