本文整理汇总了TypeScript中ionic-angular.NavParams.get方法的典型用法代码示例。如果您正苦于以下问题:TypeScript NavParams.get方法的具体用法?TypeScript NavParams.get怎么用?TypeScript NavParams.get使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ionic-angular.NavParams
的用法示例。
在下文中一共展示了NavParams.get方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: ngOnInit
async ngOnInit() {
const cardName = this.navParams.get('cardName');
this.cardConfig = await this.giftCardProvider.getCardConfig(cardName);
await this.getCards();
this.listenForUpdates();
}
示例2: ionViewDidLoad
ionViewDidLoad() {
console.log(this.navParams.get('id'));
}
示例3: constructor
constructor(private settingsDelegate: CoreSettingsDelegate, platorm: Platform, navParams: NavParams) {
this.isIOS = platorm.is('ios');
this.selectedPage = navParams.get('page') || false;
}
示例4: ngOnInit
ngOnInit() {
this.filter = this.navParams.get('filter');
}
示例5: constructor
constructor(public nav: NavController, public navParams: NavParams, public bookmarkService: BookmarkService) {
// If we navigated to this page, we will have an item available as a nav param
// this.post = navParams.get('post');
this.post = navParams.get('post');
}
示例6: constructor
constructor(private randomService: RandomService, public navCtrl: NavController, public navParams: NavParams) {
this.showResult = false;
this.pageName = navParams.get('name');
this.items = navParams.get('items');
this.selectedItem = this.randomService.random(this.items);
}
示例7: constructor
constructor(navParams: NavParams) {
this.module = navParams.get('module') || {};
this.courseId = navParams.get('courseId');
this.title = this.module.name;
}
示例8: getLink
getLink(){
this.embedID = this.params.get('vidID');
this.vidLink = `https://www.youtube.com/embed/${this.embedID}`;
}
示例9: constructor
constructor(public navCtrl: NavController, public navParams: NavParams, public http: Http, public events: Events) {
this.items = this.navParams.get('sources');
var d = this.navParams.get('date');
this.updateConfDate(d);
}
示例10: constructor
constructor(private navCtrl: NavController, private navParams: NavParams) {
this.global = this.navParams.get('global');
}