My Web APPI is working ok when I call the GET method on local server ( http://localhost:51085/api/GetMethod ) it retrieves the correct array of objects.
But, when I call it from Angular4 app, the returned observable shows
[object Object] and an error for *ngFor ( ERROR Error: Cannot find a differ supporting object '[object Object]' of type 'object'. NgFor only supports binding to Iterables such as Arrays.).
export class AppComponent {
myDesiredDataFromServer$;
constructor(private service: ServiceHTTP) {
this.myDesiredDataFromServer = service.getData();
}
}
Any help ?