fix: ng update core 20
This commit is contained in:
@@ -1,17 +1,25 @@
|
||||
<mat-spinner *ngIf="loading"></mat-spinner>
|
||||
<mat-card *ngFor="let item of news">
|
||||
@if (loading) {
|
||||
<mat-spinner></mat-spinner>
|
||||
}
|
||||
@for (item of news; track item) {
|
||||
<mat-card>
|
||||
<mat-card-header>
|
||||
<mat-icon *ngIf="item.pinned">push_pin</mat-icon>
|
||||
<mat-card-title>{{item.title}}</mat-card-title>
|
||||
@if (item.pinned) {
|
||||
<mat-icon>push_pin</mat-icon>
|
||||
}
|
||||
<mat-card-title>{{item.title}}</mat-card-title>
|
||||
</mat-card-header>
|
||||
<mat-card-content [innerHTML]="item.content">
|
||||
</mat-card-content>
|
||||
<mat-card-footer>
|
||||
<p>{{item.date | date:'d-LL-yyyy HH:mm'}}</p>
|
||||
<p>{{item.date | date:'d-LL-yyyy HH:mm'}}</p>
|
||||
</mat-card-footer>
|
||||
</mat-card>
|
||||
<mat-card *ngIf="news.length == 0">
|
||||
</mat-card>
|
||||
}
|
||||
@if (news.length == 0) {
|
||||
<mat-card>
|
||||
<p>
|
||||
Brak wiadomości.
|
||||
Brak wiadomości.
|
||||
</p>
|
||||
</mat-card>
|
||||
</mat-card>
|
||||
}
|
||||
Reference in New Issue
Block a user