@Tubiss wrote:
public product: any; loadProducts(){ this.myProvider.load() .then(data => { console.log(data); this.product= data; }); }
this.eventDate=new Date(this.product[0].start_time);
//when ı write this code its givin error like this TypeError: Cannot read property ‘0’ of undefined TypeError: Cannot read property ‘0’ of undefinedso plaese help me how can ı use peroducts something like product[0].
Posts: 1
Participants: 1