Can anyone help me with below query ?
Sometimes I will get the data as JSONObject and sometimes I will get the data as JSONArray during the time of ng-repeat it will only work with JSONArray but not with JSONObject situation Can you suggest me something here?
Here is the example this will show the value of _serviceID only when Service comes as an array but this won't work if Service section comes as an Object
<td class="features">
<span ng-repeat="indi in ServiceChanges.ServiceInstalls.Service">{{indi._serviceID}}<br></span>
</td>
Note : I don't want to use ng-if to check the length as it affects the position of my DOM in other DIV So is there any solution other than this kind of approach like converting object into array by adding dummy values?