Ion-list works in browser but appears blank on device


I have an ion-list that works just fine when i run ionic serve but when I build for android and run on my phone the list appears (I can see the item separators) but there is no content (or it is not visible) so it seems like the data is there. Any thoughts? Thanks in advance!

<ion-list *ngSwitchCase="'buying'">
            <ion-item *ngFor="let order of orders.buying" (click)="itemSelected(order)">
                <h2>#{{}} - {{order.seller_org_name}}</h2>
                <p><b style="color:#00CC33">{{ | currency:'USD':true:'1.2-2'}}</b> [{{order.status}}]</p>
                    <li *ngFor="let order_item of order.order_items">


Try using ionic serve --lab maybe on android/ios (your platform) there is another styling for text color - same like you list background color.

Try remote debugging to inspect your elements --> for android use chrome and for ios use safari debugging.


I meet the same issue, after a setTimeout I’m surprised to see no list’s items.
Althought I used AlertController wich displayed correctly the request return : sqlStorage works finely ! But none item of ion-list component !

Tryed with Android :

#home.ts :

	.then( (results)=>{
		console.log("loadDataTable::sData.results = "+JSON.stringify(results) );
		{ // Displaying results on device
			this.BOUtils.showAlert("Debug :", JSON.stringify(results));
			setTimeout( ()=> { = results;
				console.log(" = ";
			this.BOUtils.showToast("Aucune donnée !",5000);
	}); // Lire les tuple pour peupler le template



     public getData():Promise<any>
		return"SELECT id, volume, idUsager,'[Utilisateur]' as strUsagerNom, statutPaiement, montantPaiement "+
		  "FROM remplissages ")
		  .then((data) => {
			console.log("data.res.rows.length = "+data.res.rows.length);
			if(data.res.rows.length > 0) {
				let remplissages = [];
				let strVolume:string; 
				let strUsagerComplet:string;
				let strMontantPaiement:string;
				for(let i = 0; i < data.res.rows.length; i++) {
		                let strStatutPaiement:string = "Non payé";
				             strStatutPaiement = "Payé";
  		                      id: data.res.rows.item(i).id,
		                      volume: data.res.rows.item(i).volume,
		                      strVolume: data.res.rows.item(i).volume+" " + this.UNITE_VOLUME,
		                      idUsager: data.res.rows.item(i).idUsager,
		                      strUsagerComplet:  data.res.rows.item(i).strUsagerPrenom+" "+ data.res.rows.item(i).strUsagerNom,
		                      statutPaiement: this.BOUtils.getBooleanFromNumber(data.res.rows.item(i).statutPaiement),
		                      strStatutPaiement: strStatutPaiement,
	            	 	      montantPaiement: data.res.rows.item(i).montantPaiement,
	            		      strMontantPaiement: strMontantPaiement,
                return remplissages;
             else{ // if(data.res.rows.length == 0
            	return 0;
        }, (error) => {
            this.BOUtils.showToast("getRemplissages : "+JSON.stringify(error), 5000);
		    return error;


<ion-content class="has-header">

 <ion-list class="listeGestion">
          Inventaire des remplissages
      <ion-item *ngFor="let d of data">
        <ion-avatar item-left class="header-volume-value">
        <h2>Fait le {{d.dateHeure | date:"EEE dd MMM y"}}</h2> 


Cordova CLI: 6.3.1
Ionic Framework Version: 2.0.0-beta.11
Ionic CLI Version: 2.0.0-beta.37
Ionic App Lib Version: 2.0.0-beta.20
OS: Windows 8.1
Node Version: v4.5.0


Are you initializing data to an empty array like data = []? If you aren’t, do so. Anything walked by ngFor in the template must be an array at all times.


I don’t use data in reality, it’s a forgotten var.


Your template seems not to have gotten that memo:

<ion-item *ngFor="let d of data">


I extracted a piece of code which is right. You are right : this basic feature works as it must do it !
But I didn’t find my error into complex method on home.ts nor data-services.ts not visible here, it is reserved to be displayed for customers that I works for !