Issue
Is there a way that I can pass this itemId parameter so that the MarketPlaceItemPage can use that data?
async presentMarketplaceItem(itemId: number) {
const modal = await this.modalController.create({
component: MarketplaceItemPage,
cssClass: '',
mode: 'ios',
});
return await modal.present();
}
I'm just not finding what I need in the Ionic documentation. Thanks in advance!
Solution
I found something that works from this website https://www.freakyjolly.com/ionic-modal-popovers-pass-receive-data/
async presentMarketplaceItem(itemId: number) {
const modal = await this.modalController.create({
component: MarketplaceItemPage,
componentProps:{
id: itemId
},
cssClass: '',
mode: 'ios',
});
return await modal.present();
}
Answered By - Rhett Harrison
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.