本文整理汇总了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);
}