I have an array of cards that displays download buttons. I wish to hide the download button in the first div
if I have already downloaded and saved the data to the database and the second div
then displays.
<ion-card *ngFor="let data of itemList.list let i = index">
<ion-card-content>
<div> <!-- I want this to display if *ngIf="n == data.task does not display -->
<ion-button (click)="saveData(data.link)" >Download for offline use</ion-button>
</div>
<div *ngFor="let n of loop"> <!-- loops through keys in database -->
<div *ngIf="n == data.task"> <!-- if data.task key exists the buttons display -->
<div class = "linkButtons">
<ion-button (click)="openForm(data.Type, data.task)"> Open </ion-button>
<ion-button (click)="syncData()">Sync</ion-button>
<ion-button (click)="deleteAudit( n )">Delete</ion-button>
</div>
</div>
</div>
</ion-card-content>
</ion-card>