Skip to content

Commit

Permalink
Affichage de toutes les données téléchargeables d'une subRessource #15
Browse files Browse the repository at this point in the history
  • Loading branch information
Naminoshin committed Jun 12, 2024
1 parent 971aecd commit 9d71641
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,11 @@
>datahub.search.filter.generatedByWfs</span
>
</div>
<div *ngFor="let link of liste$ | async">
<a [href] = "link['href']">Télécharger</a>
<div *ngFor="let entry of liste$ | async">
<a [href] = "entry['link'][0]['href']">{{entry['link'][0]['href'].split("/").slice(-1)}} <mat-icon class="!w-7 !h-7 card-icon text-3xl material-symbols-outlined">
cloud_download
</mat-icon></a>
</div>
</div>
<div class="shrink-1 w-14 flex flex-col justify-center items-center">
<mat-icon class="!w-8 !h-8 card-icon text-3xl material-symbols-outlined">
cloud_download
</mat-icon>
</div>


</div>

</a>
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ export class IgnApiProduitComponent implements OnInit {
ngOnInit(): void {
this.liste$ = this.http.get(this.link['id']).pipe(

map((response) => response['entry'][0]['link']),
map((response) => response['entry'],
// tap(el=> console.log(el)),
)
)
}

downloadListe():void{
Expand Down

0 comments on commit 9d71641

Please sign in to comment.