Hello, I am getting data using API calls in ionic 4, but I’ve got 3 data at once and it’s three different array so my question is how can i display this data in ionic pages?
I tried like this:
pagedetail.ts
table: any[];
information = null;
constructor(private router: Router,
public shareddataservice: SharedDataService,
private activatedroute: ActivatedRoute) { }
ngOnInit() {
let id = this.activatedroute.snapshot.paramMap.get('id');
this.shareddataservice.getprodbyID(id).then((dataprod: any[]) => {
console.log('my data: ', dataprod);
this.information = dataprod;
});
}
pagedetail.html
<h1>Product name:{{information.ProductNameEnglish}}</h1>
here i am getting data in this formate when i am using console.log:
help please