I am fetching data from JSON api using the below code in my 'listproduct.ts'
names = [];
this._listProduct.listProduct().subscribe(data => {
this.list = data;
console.log(data);
});
In console.log, I am fetching the result as expected, attaching a picture for your reference:
I need to fetch data.NAME in names array, how can I do this ?
data.NAME is not working.
