I am very new to ionic. Just learning it. Basically I have two pages, welcome and home. First welcome page gets loaded.
I want to load home page after 2-3 seconds when welcome page load. Same I have done using setTimeout in JavaScript.
ionViewDidLoad() {
console.log('ionViewDidLoad WelcomePage');
setTimeout(() => {
this.navCtrl.popToRoot(home);
}, 2500);
}
The above code not working. Seems like typo error in poptoroot. What can I try to fix this?