ngFor -> @For finished
LocationBasedServices/mowesta/pipeline/head There was a failure building this commit
LocationBasedServices/mowesta/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user