When I receive JSON data and attempt to display it using the ng-repeat
directive, I encounter an error
ng-dupes error
<table>
<tr ng-repeat="emp in empArr">
<td>{{emp.empcode}}</td>
<td>{{emp.empName}}</td>
</tr>
</table>
In addition, here is the AngularJS function responsible for fetching the JSON data :
$scope.Show = function() {
$http.get("get_oracle_data.jsp?sqlStr=SELECT empcode,empname from emp")
.then(function(response) {
$scope.empArr = response.data;
});
Could someone point out what might be causing this issue?