I am converting an angular 2 component to use asynchronous data sources.
I had a <div class="col s4" *ngFor="let line of lines; let i = index;">
which worked when lines
was an Array of Objects, however, lines is now an Observable of an Array of Objects.
This causes error:
Cannot find a differ supporting object '[object Object]' of type 'object'. NgFor only supports binding to Iterables such as Arrays.
I tried <div class="col s4" *ngFor="let line of lines | async; let i = index;">
however, that didn't seem to make a difference.
How should I deal with this?