How to passing data from one page to another using routerlink and without using firebase

import { Component } from ‘@angular/core’;

import { NavController } from ‘@ionic/angular’;

import { Router } from ‘@angular/router’;

@Component({

selector: ‘app-info’,

templateUrl: ‘./info.page.html’,

styleUrls: [’./info.page.scss’],

})

export class InfoPage {

name : any;

fathername : string;

mothername : string;

DOB : string;

occupation : string;

religion : string;

address : string;

city : string;

state : string;

pinzip : string;

emailid : string;

password : string;

constructor(private router: Router) {

console.log(this.name);

let vs = this.name;

}
}

While you wait for better answers, I would simply use a mutually-injected service provider to sling data around like this, instead of trying to do it with the router.