I am receiving response from apex class in this format
[ { "Id" : "some record id" , "Name" : "opportunity name" , "Status" : "New"} ]
I am getting this response in
.then(response => {
- If I use
console.log(response)
then I am getting proxy object. - I use
console.log(JSON.stringfy(response)
then I am getting stringifyed data( plain data)
when I am setting that response to a variable called
@track oppList = [];
oppList = JSON.stringfy(response);
And when doing console.log(oppList)
I am again getting proxy format
I need to use oppList
in template for:each
Like
<template for:each item={oppList} for:item="opp">
<p key={opp. Id} > {opp. Name}
{opp.Status}