Currently working on an Angular 2 website, I am faced with the challenge of displaying data from an object retrieved from the backend. The structure of the object is as follows:
{ version: 3.0.0, gauges:{ jvm.memory.total.used:{ value: 3546546 }}}
The issue arises when attempting to display attributes with dots in their names in the HTML using (assuming 'metrics' represents the object):
{{metrics.gauges.jvm.memory.total.used}}
Another approach I tried is:
metrics.gauges['jvm.memory.total.used'].value
While this method works in the controller, it fails in the HTML. It's worth noting that 'jvm.memory.total.used' is not the only attribute with dots in its name. Any insights on why this could be happening? Any suggestions for resolving this issue?
Appreciate your help.