Currently, I am utilizing a 3rd party API to populate my front end with data. Due to the nature of the API, I do not have control over it and am simply displaying information using REST URLs.
<tr ng-repeat="stat in allStats">
<td>{{stat.date}}</td>
<td>{{stat.Organic Inbound}}</td>
</tr>
I am facing an issue with the {{stat.Organic Inbound}}
property. The presence of a space within the variable name is causing difficulties as I am unable to modify the backend format. Can you advise on how to handle such variables within AngularJS ng-repeat loop? I recall encountering this situation before but cannot remember the exact solution. I attempted techniques like
<td>{{stat.$(Organic Search)}}</td>
and <td>{{stat.'Organic Search')}}</td>
, among others, without success.
Due to the large volume of incoming data, manually mapping the object in the JavaScript controller to alter it would be impractical and slow down the process significantly. Is there a way to utilize \
to ignore the space in the variable name? Any insights or suggestions are greatly appreciated.