I have the following code:
<div ng-if="personas.hijos">
Tiene hijos
</div>
<div ng-if="!personas.hijos">
No tiene hijos
</div>
{{personas.hijos}} =>
1 - si tiene me devuelve el json
{"test":{"a":0.8625,"b":0.5},"test2":{"a":0.72,"b":0.5}}
2 - si no tiene me pinta {}
The problem is that he always enters the first div, he has children