Skip to content

Commit

Permalink
refactor ngif
Browse files Browse the repository at this point in the history
  • Loading branch information
asliayk committed Oct 19, 2024
1 parent 53cc125 commit ea36718
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@
<fa-icon [fixedWidth]="true" [icon]="sidebarItem.rightIcon" />
}
</span>
<span *ngIf="unreadCount && unreadCount > 0" class="unread-count">{{ formattedUnreadCount }}</span>
@if (unreadCount && unreadCount > 0) {
<span class="unread-count">{{ formattedUnreadCount }}</span>
}
</div>
<div class="d-flex justify-content-between align-items-baseline small" [ngClass]="{ 'mt-1': sidebarItem.subtitleLeft }">
<small class="me-2 text-truncate">
Expand Down

0 comments on commit ea36718

Please sign in to comment.