我正在使用带有 Angularjs 和 Metronic 模板的 Spring 并且我在数据表按钮的打印按钮中遇到问题 我正在尝试打印一个数据表,其中填充了我的 MYSQL 数据库中的一些数据,但是当我看到要打印的内容时我只在下面看到: 不想要的结果
这是我的查看代码:
<div class="row">
<div class="col-md-12">
<!-- BEGIN EXAMPLE TABLE PORTLET-->
<div class="portlet light bordered">
<div class="portlet-title">
<div class="caption font-dark">
<i class="icon-settings font-dark"></i>
<span class="caption-subject bold uppercase">Buttons</span>
</div>
<div class="tools"> </div>
</div>
<div class="portlet-body">
<table class="table table-striped table-bordered table-hover" id="sample_1">
<thead>
<tr>
<th>Id_client</th>
<th>Nom</th>
<th>prenom</th>
<th>email</th>
<th>adress</th>
<th>Telephone</th>
</tr>
</thead>
<tbody >
<tr data-ng-repeat=" i in pageClient track by i.id_client" >
<td >{{i.id_client}}</td>
<td >{{i.nom}}</td>
<td >{{i.prenom}}</td>
<td >{{i.email}}</td>
<td >{{i.adresse}}</td>
<td >{{i.telephone}}</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- END EXAMPLE TABLE PORTLET-->
</div>
</div>
<!-- BEGIN DATATABLE PLUGINS -->
<script src="../assets/global/scripts/datatable.js" type="text/javascript"></script>
<script src="../assets/global/plugins/datatables/datatables.min.js" type="text/javascript"></script>
<script src="../assets/global/plugins/datatables/plugins/bootstrap/datatables.bootstrap.js" type="text/javascript"></script>
<script src="../assets/global/plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js" type="text/javascript"></script>
<!-- END PAGE LEVEL PLUGINS -->
<!-- BEGIN THEME GLOBAL SCRIPTS -->
<script src="../assets/global/scripts/app.min.js" type="text/javascript"></script>
<!-- END THEME GLOBAL SCRIPTS -->
<!-- BEGIN PAGE LEVEL SCRIPTS -->
<script src="../assets/pages/scripts/table-datatables-buttons.min.js" type="text/javascript"></script>
<!-- END PAGE LEVEL SCRIPTS -->
<script src="../angularjs/ng-csv.js" type="text/javascript"></script>
<!-- BEGIN DATABALES PLUGINS -->
这是我的 app.js 控制器:
app.controller("ClientController", function($scope, $http) {
$scope.pageClient = null;
$http.get("http://localhost:8081/listeClient")
/* Success */
.then(function(response) {
$scope.pageClient = response.data;
}).catch(function (data) {
}).finally(function () {
});
});
一切正常,所以我想知道为什么我会看到 {{i.id_client}} 而不是我的实际数据:我的数据