I can't seem to figure out what I'm doing wrong. I"m trying *ngFor on a typed Market[] variable, but for some reason it can't read the array properly. Ionic is complaining markets is not a array, but from my implementation it would appear it is. Help
Market def:
export interface Market {
id: string;
symbol: string;
base: string;
quote: string;
info: any;
lot: number;
}
My Service call
getMarketData(): Observable<Market[]> {
let bittrex = new ccxt.poloniex();
return Observable.fromPromise(bittrex.loadMarkets());
}
My page setting the data
markets: Market[] = [];
async loadMarkets() {
this.cryptoService.getMarketData().subscribe((data: Market[]) => {
this.markets = data;
})
}
My template
<ion-list #scheduleList [hidden]="markets.length < 0">
<ion-item-group *ngFor="let market of markets">
<ion-item-divider sticky>
<ion-label>
{{market}}
</ion-label>
</ion-item-divider>
</ion-item-group>
What I don't understand is why I'm not getting back a array.

}here:{{market}..not sure if it is related thoughdatain subscribe and verify if it is an array?