navparams

How to navigate between pages in ionic 4 & 5?

折月煮酒 提交于 2020-06-15 10:16:38
问题 I had a project that I developed with ionic 3. But I took a break and when I started working again with ionic, I saw the navigation system change in the new versions. My project is a simple project. This project that lists the data in the a array and details about the data appear on a different page. I was doing this on Ionic 3: homepage.ts export class HomePage { items = []; constructor(public navCtrl: NavController) { this.initializeItems();} initializeItems() { this.items = [ { 'title':

How to navigate between pages in ionic 4 & 5?

泪湿孤枕 提交于 2020-06-15 10:13:16
问题 I had a project that I developed with ionic 3. But I took a break and when I started working again with ionic, I saw the navigation system change in the new versions. My project is a simple project. This project that lists the data in the a array and details about the data appear on a different page. I was doing this on Ionic 3: homepage.ts export class HomePage { items = []; constructor(public navCtrl: NavController) { this.initializeItems();} initializeItems() { this.items = [ { 'title':