I am building app which shows amazon products :
showProducts(){
this.search.getProducts().subscribe
((data: any) => {
this.list = data['hydra:member'];
this.prices = data.lowestPrices.Amazon.newItem;
console.log('Objects', this.list);
console.log('Prices', this.prices);
});
}
this.list in console :
this.prices in console :
Cannot read property 'Amazon' of undefined
How to get lowest prices of Amazon properly ?