Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70877

Ionic 2 Failed to push to another page from Forms in Modal

$
0
0

@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 method

goToCart() {
    this.nav.setRoot(CartPage);
  }

Below picture is after I clicked submit button in the form, the modal only slided half

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>