ngFor -> @For finished
LocationBasedServices/mowesta/pipeline/head There was a failure building this commit

This commit is contained in:
2024-03-07 11:41:25 +01:00
parent eb60289066
commit 2e8871d22e
10 changed files with 199 additions and 155 deletions
@@ -15,37 +15,41 @@
</div>
</div>
}
@if(forecast | async; as f){
@if(forecast$ | async; as f){
<div class="mws-flexbox">
<div class="mws-flexbox">
<ng-container *ngFor="let t of f; let i = index">
@if(i < tileNoPerContainer){
<app-weather-summary
[ngClass]="(this.dayTime || this.todayTomorrow) ? 'mws-tiles-pl' : ''"
[title]="t.title"
[subtitle]="t.subtitle"
[conditions]="t.conditions"
[clickHandler]="goToMowestaHandler"
[noMargin]="!dayTime && !todayTomorrow"
[concise]="!verbose">
</app-weather-summary>
}
</ng-container>
@for (t of f; track i; let i = $index) {
<ng-container>
@if(i < tileNoPerContainer){
<app-weather-summary
[ngClass]="(this.dayTime || this.todayTomorrow) ? 'mws-tiles-pl' : ''"
[title]="t.title"
[subtitle]="t.subtitle"
[conditions]="t.conditions"
[clickHandler]="goToMowestaHandler"
[noMargin]="!dayTime && !todayTomorrow"
[concise]="!verbose">
</app-weather-summary>
}
</ng-container>
}
</div>
<div class="mws-flexbox">
<ng-container *ngFor="let t of f; let i = index">
@if(i >= tileNoPerContainer){
<app-weather-summary
[ngClass]="(this.dayTime || this.todayTomorrow) ? 'mws-tiles-pl' : ''"
[title]="t.title"
[subtitle]="t.subtitle"
[conditions]="t.conditions"
[clickHandler]="goToMowestaHandler"
[noMargin]="!dayTime && !todayTomorrow"
[concise]="!verbose">
</app-weather-summary>
}
</ng-container>
@for (t of f; track i;let i = $index) {
<ng-container>
@if(i >= tileNoPerContainer){
<app-weather-summary
[ngClass]="(this.dayTime || this.todayTomorrow) ? 'mws-tiles-pl' : ''"
[title]="t.title"
[subtitle]="t.subtitle"
[conditions]="t.conditions"
[clickHandler]="goToMowestaHandler"
[noMargin]="!dayTime && !todayTomorrow"
[concise]="!verbose">
</app-weather-summary>
}
</ng-container>
}
</div>
</div>
}@else{