@vinnchan wrote:
<form [formGroup]="variation" (ngSubmit)="onSubmit()"> <ion-list radio-group formControlName="color" *ngFor="let option of options"> <ion-list-header> {{option.name}} </ion-list-header> <ion-item *ngFor="let opt of option.options"> <ion-label>{{opt}}</ion-label> <ion-radio value="{{opt}}"></ion-radio> <!--<ion-input type="text" formControlName="color" name="color" value=""></ion-input>--> </ion-item> </ion-list> <button class="custom-button" block (click)="goToCart()">Submit</button> </form>
Above is my forms in modal
I failed to push to another page from Forms in Modal after I clicked submit button.
Below is my push to another page methodgoToCart() { this.nav.setRoot(CartPage); }
Below picture is after I clicked submit button in the form, the modal only slided half
Posts: 2
Participants: 2