I am developing an Angular 2 website, and I am trying to show the information contained in an object received from the back-end, which have the following structure:
{ version: 3.0.0, gauges:{ jvm.memory.total.used:{ value: 3546546 }}}
The problems come when trying to show the attribute that has dots in its name in the HTML with (being metrics the name of the object):
{{metrics.gauges.jvm.memory.total.used}}
I have also tried this way:
metrics.gauges['jvm.memory.total.used'].value
But althogh that way works in the controller, it won't work in the HTML. The 'jvm.memory.total.used' attribute is not the only one that has dots in its name. Do you guys see any possible reason for this to be happening? Or any way of solving this?
Thank you