How to dynamically go to previous page (ionic 4)?
问题 Currently im migrating my ionic 3 project to ionic 5, in ionic 3 we use this.navCtrl.getPrevious().name; to get the previous page name by getting the previous page name i will navigate to different pages based on the previous page name can you please help me how can i get previous page name in ionic 4 回答1: Ionic 4+ moved away from navCtrl and leverages Angular Router. To read previous URL (route) you may do it via PreviousRouteService: import { Injectable } from '@angular/core'; import {