Hi,
i am making an app to collect user details in this i have a Api which will give u state id based on country selected
here i need to add a select option which should dynamically filled based on country selected and next
cities should be filled based on the state selected priviously and this should not affect other form data(i.e page should not reload) how to do this
here is my html code
<form [formGroup]="form" (ngSubmit)="submituser(form.value)">
<ion-row>
<ion-col>
<ion-list inset no-lines>
<ion-item>
<ion-input type="text" placeholder="First name" [formControl]="form.controls['first_name']"></ion-input>
</ion-item>
<ion-item>
<ion-input type="text" placeholder="Last name" [formControl]="form.controls['last_name']"></ion-input>
</ion-item>
<ion-item>
<ion-input type="email" placeholder="Email" [formControl]="form.controls['email']"></ion-input>
</ion-item>
<ion-item>
<ion-input type="tel" placeholder="Mobile" [formControl]="form.controls['mobile']"></ion-input>
</ion-item>
<ion-item>
<ion-input type="password" placeholder="Password" [formControl]="form.controls['password']"></ion-input>
</ion-item>
Here i need select option
<ion-select [formControl]="form.controls['country']">
here data should be filled based on http response
</ion-select>
</ion-list>
</ion-col>
</ion-row>
<ion-row>
<ion-col class="signup-col">
<button ion-button type="submit" class="submit-btn" full color="primary" outline [disabled]="!form.valid">Submit</button>
</ion-col>
</ion-row>
</form>