本文整理匯總了TypeScript中ionic-angular.NavParams類的典型用法代碼示例。如果您正苦於以下問題:TypeScript NavParams類的具體用法?TypeScript NavParams怎麽用?TypeScript NavParams使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了NavParams類的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: constructor
constructor(public getData: Data, public nav: NavController, private navParams: NavParams, public sqlite: SQLiteService){
this.nav = nav;
this.testId = this.navParams.get('testId');
}
示例2: constructor
constructor(private nav: NavController, public navParams: NavParams, public viewCtrl: ViewController) {
this.userinfo = this.navParams.get('user');
this.data = this.navParams.get('data')
}
示例3: constructor
constructor(public params: NavParams, public viewCtrl: ViewController) {
this.guest = this.params.get('guest');
this.loaded = false;
}
示例4: constructor
constructor(private nav: NavController, navParams: NavParams) {
this.product = navParams.get('product');
console.log(this.product);
}
示例5: constructor
constructor(private viewCtrl: ViewController, params: NavParams, translate: TranslateService) {
this.title = params.get('title') || translate.instant('core.imageviewer');
this.image = params.get('image');
this.component = params.get('component');
this.componentId = params.get('componentId');
}
示例6: constructor
constructor(private nav: NavController, private alertController: AlertController,private params:NavParams) {
this.nav = nav;
this.senha1 = "";
this.senha2 = "";
this.id = params.get("parametro");
}
示例7: constructor
constructor(public viewCtrl: ViewController, params: NavParams) {
this.isFavorite = params.get('isFavorite');
}
示例8: constructor
constructor(navParams: NavParams, courseHelper: CoreCourseHelperProvider, private viewCtrl: ViewController) {
this.sections = navParams.get('sections');
this.selected = navParams.get('selected');
}
示例9: constructor
constructor(navParams: NavParams) {
this.module = navParams.get('module') || {};
this.courseId = navParams.get('courseId');
this.selectedGroup = navParams.get('group') || 0;
this.title = this.module.name;
}
示例10: ionViewDidLoad
ionViewDidLoad() {
this.postId = this.navParams.get('postId');
console.log(this.postId);
this.post = this.data.getPostById(this.postId);
}