Hi I have a segment control with 2 sections, I want the user to enter their information on step 1 before they can go to step 2. Below is what I have, But when step 2 is selected, it does the validation, but it still switches over to step 2, I want it to stop, It must only go to Step 2 when the validation passes.
<ion-segment [(ngModel)]="section">
<ion-segment-button value="client">
Step 1
</ion-segment-button>
<ion-segment-button value="products" (ionSelect)="ValidateStep1()">
Step 2
</ion-segment-button>
</ion-segment>
Any ideas?
Thanks in advance.