am trying to navigate to another page on click of button.
There are two pages home & base
in home.html Go
in home.ts I have imported BasePage module.
import { Component } from ‘@angular/core’;
import { NavController } from ‘ionic-angular’;
import { BasePage } from ‘…/base/base’;
@Component({
selector: ‘page-home’,
templateUrl: ‘home.html’
})
export class HomePage {
constructor(public navCtrl: NavController) {
}
onclick(){
this.navCtrl.push(BasePage)
}
}
in app.module.ts I have imported the same BasePage
it is not redirecting to the page.neither there is any error on console. I have checked out many sites. they have used the same function that works correctly. I am using angular3.