Angular v20
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
<div *ngIf="item;let item" class="widget" [style.background-color]="itemTypeService.getColor(item.itemType)">
|
||||
<div class="align-middle icon" [ngClass]="itemTypeService.getIcon(item.itemType)"></div>
|
||||
<div class="title">{{item.name}}</div>
|
||||
</div>
|
||||
@if (item; as item) {
|
||||
<div class="widget" [style.background-color]="itemTypeService.getColor(item.itemType)">
|
||||
<div class="align-middle icon" [ngClass]="itemTypeService.getIcon(item.itemType)"></div>
|
||||
<div class="title">{{item.name}}</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user