I"m pulling data from an API right now and depending on if the user is logged in or not I want to display a login prompt. I can do this by having two divs each with their own *ngIf="cond"
but this is a lot of duplicate code. Is there a way using Ionic 3 + Angular to only have the (click)
attribute if a condition is met, otherwise leave it off?
Any help would be great.