Button directing to visited page

Asked

Viewed 23 times

1

Good Afternoon I have a problem with Ionic, I have a boot that is directing to my home page. Since when I direct, the Home Page appears as if I was already visited, the arrow appears to return. What I want is for her to come back and start home.

My template :

Close App

Your Data : </H3> Correct : {right turns}} Wrong : {right turns}</H4> Points: {{}}</H5> -->

Are you sure you want to leave ?





Yes

Not

*If you choose to quit, you will lose all your points and it will be directed(a) to the home page.

Meu ts :

import { Homepage } from './.. /home/home'; import { Component } from '@angular/core'; import { Ionicpage, Navcontroller, Navparams, Modalcontroller, Viewcontroller, Loadingcontroller } from 'Ionic-angular';

/** * Generated class for the Modalfinalpage page. * * See https://ionicframework.com/docs/components/#navigation for more info on * Ionic pages and navigation. */

@Ionicpage() @Component({ selector: 'page-modalfinal', templateUrl: 'modalfinal.html', }) export class Modalfinalpage {

constructor(public navCtrl: Navcontroller, public navParams: Navparams, public modalCtrl : Modalcontroller,public loadingCtrl: Loadingcontroller, public viewCtrl : Viewcontroller) { }

public closeModal(){ this.viewCtrl.Dismiss(); }

home(){ this.navCtrl.push(Homepage); }

ionViewDidLoad() { console.log('ionViewDidLoad Modalfinalpage'); }

}

1 answer

0

try to go to the root page instead of:

home(){ this.navCtrl.push(HomePage); }

Try:

   home(){ this.navCtrl.setRoot(HomePage); }

Browser other questions tagged

You are not signed in. Login or sign up in order to post.