price:any;
for(let price of this.product.prices) {
     this.price= this.dataProvider.getprice(price.amount); // this returns 
price of item as "5.00", next return price of item as "10.00"
   } 

I have empty array declared as storePrice :[];
for(let price of this.product.prices) {
     this.price= this.dataProvider.getprice(price.amount); // this returns 
price of item as "5.00", next return price of item as "10.00"
   } 
this.storePrice.push(this.price) ; //  giving an error as [ts] Argument of 
type 'any' is not assignable to parameter of type 'never'.

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to