HTTP Service And Repeat - NgFor only supports binding to Iterables such as Arrays


Hey all, firstly sorry for my bad english.
Im trying get data from api and list, but when i try it, ionic get this error:

Cannot find a differ supporting object ‘[object Object]’ of type ‘object’. NgFor only supports binding to Iterables such as Arrays.

This is my code:


this.api.getTest().then(success =>{
            this.users = success;

API Provider

getTest() {
    return new Promise((resolve) => {

      .map(res => res.json())
      .subscribe(data => {
        this._data = data.results;

<ion-item text-wrap *ngFor="let user of users">

If anyone can help me,


It would help to see what is being logged in the console, to know what is being returned.

getTest() does not need to be creating promises, and in fact does not propagate errors correctly as written. Do it this way instead:

getTest(): Observable<User[]> {
  return this.http.get('url').map((rsp) => {
    return extractUsersFromResponse(rsp);

this.api.getTest().subscribe((users) => {
  this.users = users;

What extractUsersFromResponse looks like depends on what the backend is sending you.