Populating nativescript radList view with Data from Webservice


#1

#2

this._cPSAdminService.fetchTenantsList()

This will return an Observable that emits the result from server when the request is completed. You can’t simply pass it to Observable Array.

It must be something like this,

this._cPSAdminService.fetchTenantsList()
      .subscribe((result) => {
           this._sourceDataItems = new ObservableArray(result);
      });

#3

Thanks for help @manojdcoder i was able to come up with the solution.

https://stackoverflow.com/a/52467185/6657492