单选按钮使用角度2

时间:2017-05-20 03:43:53

标签: angular radio-button

    <div class="FttTransferApply">
     <div>
       <label>
        <input #female name="gender" type="radio" value="Female" (click)="gender=female.value"/>
        </label>
       </div>
      </div>

import {Component} from '@angular/core';
@Component({
    selector: 'input-controls',
    templateUrl: './components/input-controls/input-controls.html'
})
export class InputControls {
    gender:string;
}

单选按钮不使用angular2显示。我想使用Angular2显示单选按钮

0 个答案:

没有答案