I'm taking over a mobile project at my new work, which has a badge system, on click, it displays a modal with the badge.
I would like to display a small "V" image on it if the user owns the badge, which is easily done with some ngIf, but in this case the previous developer is using the modalController which takes cssClass as an attribute for styling, is there a way to make conditional statements on this or will I have to recreate a modal on my own?
Here's the modal code:
const modal = await this.modalCtrl.create({
component: ModalBadgePage,
cssClass: 'modal-badge',
mode: 'md',
componentProps: {
// id: currentId,
title: badgeTitle,
description: badgeDescription,
image: badgeImage,
hunts: badgeHunts
}
});
Thank you !
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…