本文整理匯總了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');
}