Hello everyone, I'm new to Angular and I need some help accessing the values inside objects. Specifically, I'm trying to access the SuccessCount in this Array.
Here is my attempt:
goodResponse=[
{compId: 1, companyName: "A", pendingCount: 0, successCount: 0, apiErrorCount: 0, …},
{compId: 1, companyName: "B", pendingCount: 0, successCount: 0, apiErrorCount: 0, …},
{compId: 3, companyName: "C", pendingCount: 0, successCount: 0, apiErrorCount: 0, …},
{compId: 4, companyName: "D", pendingCount: 0, successCount: 0, apiErrorCount: 0, …}
]
let _graphTotal = this.goodResponse;
let _graphTotalCount = []
_graphTotal.forEach(element => {
console.log("total Count", element[0].successCount)
});