How can i implement a switching image back and forth using if else statement?
问题 Hi everyone i wan't to switch building layout image to building design image back and forth using if else statement but i don't know how to implement it. I'am new in this type script, anybody would love to share an answer? Thank you for your answers in advanced 回答1: here is an example-component to switch a image by a action: HTML of component: <ion-list> <ion-item *ngIf="showImage1"> <img src="../assets/imgs/dots.gif" height="50px" width="50px" > </ion-item> <ion-item *ngIf="showImage2"> <img