<td>{{data.name}}</td>
<td>{{data.author}}</td>
</tr>
</table>
</div>
</body>
JS部分:
$scope.showList = function(){
$http({
url:'http://localhost:2000/book',
method:'GET',
}).then(function(success_response){
console.log(success_response);
$scope.list = success_response.data;
}, function(err_response){
console.log(err_response);
})
}