本文整理匯總了TypeScript中@ionic/angular.NavController.navigateForward方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript NavController.navigateForward方法的具體用法?TypeScript NavController.navigateForward怎麽用?TypeScript NavController.navigateForward使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類@ionic/angular.NavController
的用法示例。
在下文中一共展示了NavController.navigateForward方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: enviar_busqueda
enviar_busqueda() {
if (
this.busqueda=="lionel messi" ||
this.busqueda=="LIONEL MESSI" ||
this.busqueda=="Lionel messi" ||
this.busqueda=="messi" ||
this.busqueda=="Messi") {
this.mostrar_cargando();
this.navCtrl.navigateForward(`/leo-messi`);
} else if (this.busqueda == "cristiano ronaldo") {
this.navCtrl.navigateForward(`/c-ronaldo`);
} else if (this.busqueda == "neymar") {
this.navCtrl.navigateForward(`/ney-jr`);
} else if (this.busqueda == "kevin de bruyne") {
this.navCtrl.navigateForward(`/k-bruy`);
} else if (this.busqueda == "sergio aguero") {
this.navCtrl.navigateForward(`/s-aguero`);
} else if (this.busqueda == "alexis sanchez") {
this.navCtrl.navigateForward(`/ale-san`);
} else if (this.busqueda == "arturo vidal") {
this.navCtrl.navigateForward(`/a-vidal`);
} else if (this.busqueda == "esteban paredes") {
this.navCtrl.navigateForward(`/e-paredes`);
} else {
this.mensaje_no_encontrado();
}
}
示例2: perfil_lm
perfil_lm() {
this.mostrar_cargando();
this.navCtrl.navigateForward(`/leo-messi`);
}
示例3: requireSession
/**
* @name requireSession
* @desc tests for existing session and sends user to LoginPage in case none is found
*/
async requireSession(optional?) {
console.log('[AbstractPage]: Requires session');
this.session = await this.sessionProvider.getSession();
if (!this.session && !optional) { this.navCtrl.navigateForward('/login'); }
}
示例4: ir_acerca_pagina
ir_acerca_pagina() {
this.navCtrl.navigateForward(`/acerca-de-pagina`);
}
示例5: ionViewDidEnter
ionViewDidEnter() {
this.navController.navigateForward('/navigation/page1');
}