reactive forms radio button
<form [formGroup]="form">
<label>
<input type="radio" value="Male" formControlName="gender">
<span>male</span>
</label>
<label>
<input type="radio" value="Female" formControlName="gender">
<span>female</span>
</label>
</form>
form: FormGroup;
constructor(fb: FormBuilder) {
this.name = 'Angular2'
this.form = fb.group({
gender: ['', Validators.required]
});
}
Also in HTML:
- bootstrap radio
- how do you play audio files on html
- javascript onclick alert are you sure
- class html
- onclick a tag
- Html.ActionLink with parameters
- reset image tag js
- dl tag html
- html template page
- strong element html
- html to pdf
- bootstrap checkbox inline
- start html
- table html structure
- Sending HTML Code Through JSON
- blur() Method
- game engine
- html form tag
- html ul types
- theme colur in html
- html color changing background
- SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)
- modal
- input html