I have variable defined like this: myVar: Observable<Observable<MyObject>[]>
.
I am using Angular4 feature to enumerate with async pipe
*ngFor="let obsMyObject of (myVar | async)"
now I have Observable of MyObject, but I need just MyObject. I could write something like that:
<div *ngFor="let obsMyObject of (myVar | async)">
<div *ngIf="let obsMyObject | async; let MyObject"></div>
</div>
but I can not do this in inner div, because I am setting flex order
(which doesn't have any effect on inner div) property so I need something like this:
<div *ngFor="let obsMyObject of (myVar | async); let MyObject = (obsMyObject | async)"
[style.order]="MyObject.order">
</div>
I just had one idea how to do this, and I tried this:
<div *ngFor="let obsMyObject of (myVar | async); let MyObject = obsMyObject)">
{{MyObject}}
</div>
but MyObject is undefined, so there is no way let MyObject = (obsMyObject | async)
would work.