Redirect page with typescript

how to redirect page with typescript? not with html button

This is one way you could do it:

import { NavController } from "ionic-angular";
import { YourPage } from "../your-page/your-page";

    export class PageNavigator{

        constructor(public navCtrl: NavController)  {
            this.navCtrl.push(YourPage)
        }
    }
1 Like