Actually, Fetch the data but unable to visible in HTML code. In the web browser console displays the json data. but not visible in HTML code. this is my angular js code
$scope.refresh = function(){
fetchData();
};
$scope.fetchData = function(){
$http.get('index').success(function(data){
console.log(data);
$scope.namesData = data;
});
};
This is the HTML code
<tr data-ng-repeat="name in namesData">
<td><span>{{name.first_name}}</span></td>
<td><span>{{name.last_name}}</span></td>
Totally seven records in the database, it displays seven blank space. Not visible in JSON data in HTML.