Skip to content

Commit 8444ea9

Browse files
author
Jean-François Morin
committed
Updated Angular control flow syntax
1 parent ba12b39 commit 8444ea9

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
<button *ngIf="shouldShowButton$ | async"
2-
class="export-button btn btn-dark btn-sm"
3-
[ngbTooltip]="tooltipMsg | translate"
4-
(click)="export()"
5-
[title]="tooltipMsg | translate" [attr.aria-label]="tooltipMsg | translate">
1+
@if (shouldShowButton$ | async) {
2+
<button class="export-button btn btn-dark btn-sm"
3+
[ngbTooltip]="tooltipMsg | translate"
4+
(click)="export()"
5+
[title]="tooltipMsg | translate" [attr.aria-label]="tooltipMsg | translate">
66
<i class="fas fa-file-export fa-fw"></i>
7-
</button>
7+
</button>
8+
}

0 commit comments

Comments
 (0)