reactive from datatype angular ionic code example
Example: ionic form example
this.myForm = formBuilder.group({
firstName: ['value'],
lastName: ['value', *validation function goes here*],
age: ['value', *validation function goes here*, *asynchronous validation function goes here*]
});
...
<form [formGroup]="myForm">
<ion-input formControlName="firstName" type="text"></ion-input>
<ion-input formControlName="lastName" type="text"></ion-input>
<ion-input formControlName="age" type="number"></ion-input>
</form>