Angular2 how to know if an input is of type radio with reactive forms

you can access the value by using this code in your component

let genderValue = this._form.value.gender;

A simple one, also provides intellisense too

Typescript

// declare a form with properties i.e. name
this.form = this.formBuilder.group({
    name: ['', Validators.required]
});

// create getter for form-property i.e.
get Name(): AbstractControl {
     return this.form.get('name')
}

HTML

<input type="text" [formControl]="Name">

{{Name.value}} // your can see your input name here