Fetch the data but unable to display data in html using Angularjs spring

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(){

$scope.fetchData = function(){
        $scope.namesData = data;

This is the HTML code

<tr data-ng-repeat="name in namesData">

Totally seven records in the database, it displays seven blank space. Not visible in JSON data in HTML.

Source: AngularJS