I am experiencing issues with accessing a JSON object returned from an $http call in my AngularJS app. I have provided the code snippet below, but it seems that nothing is being rendered on the HTML. Can anyone please assist me in identifying what I might be doing wrong and guide me on how to correctly access the properties of the JSON object? Your help will be highly appreciated.
Just to note, I confirmed that the data is being sent to the view by utilizing console.log to print the customers list JSON object to the console.
Thank you.
{"Result":
[{"customer":
{"CustomerName":"Michael",
"CustomerId":"212331",
"Active":true
},
"salesid":19,
"sales_name":"John West",
"rank":["Sales Manager"]
...
...
In customers-list.html:
<ul>
<li ng-repeat="customer in myCustomersList">
<div>
<div>
<p>Customer Name: {{customer.CustomerName}}</p>
</div>
</div>
</li>
</ul>