I have an API that fetches data from database. My database contains such as this values
ID Name 1 Body 2 Skin 3 Fat
I have an API that correctly fetches this. I display it on the table but then, the displayed value for example; if the value that is correct is number 1, the name that will be displayed on the UI is "Skin" instead of "Body" what could be the problem?
I have this on my controller
Service.fetchType()
.then(function(data){
$scope.type= data.data;
localStorage.Type = JSON.stringify(data.data);
}
);
And only uses ng-repeat and {{item.Type}} on my html file
<tr ng-repeat=" item in Type >
<td> {{ item.type}} </td>
</tr>