Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49083

Iap2 listing store products issue

$
0
0

Hi there i am using this code for listing my google play products;

in .ts file

constructor(...) {
   this.platform.ready().then(() => {
      this.store.ready(() => {
         this.products = this.store.products;
      });
   });
}

in .html file

		<div class="products_container" *ngFor="let product of products">
			<div class="product_box" (click)="buy(product)">
				<div class="product_box_left">{{product.title}}</div>
				<div class="product_box_right">{{product.price}}</div>
			</div>
		</div>

when i first visit my page in app it works well as below (i made blur somewhere because it’s not english);

then if i visit this page again in my app it adds empty objects in the list;

it repeats every visist this page. If i close the app and start again it returns starting position.

Is there any information about my fault?

best regards

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>