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

Toast on click navigate to another page

$
0
0

@aligassan wrote:

I want to implement the following. when the user clicks on toast notification, the event click will navigate to a specific page. I did try the code below, but it doesn’t work.

code

const toast = await this.toastController.create({
        message: 'click on details ',
        color:'danger',
        duration:7000,
        showCloseButton:true

      });


      toast.onDidDismiss().then(()=>{
        this.nav.navigateForward('/home')
      })
       toast.present();

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70435

Trending Articles



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