How to use (click) to change page?

I have a div with a background-image, I used : (click)="onClick() and then in my .ts page I can use console.log(‘clicked’) to check if it works.

But I would like to change page when it clicks, someone know how to do it ?

Thank you

1 Like

NavController is what you are after.

import {NavController} from ‘ionic-angular’;

constructor(public navCtrl: NavController…){}

onClick() {


Great!! Thank you !!