This repository was archived by the owner on Feb 2, 2025. It is now read-only.
This repository was archived by the owner on Feb 2, 2025. It is now read-only.
Table still empty ($resource, $promise, with DataProp) #111
Closed
Description
My JS:
$scope.dtOptions = DTOptionsBuilder
.fromFnPromise(function () {
return PartyService.query().$promise;
})
.withDataProp('results')
.withOption("bProcessing", true)
.withPaginationType('full_numbers');
$scope.dtColumns = [
DTColumnBuilder.newColumn('id').withTitle('ID'),
DTColumnBuilder.newColumn('name').withTitle('Name')
];
My HTML:
<table class="table table-striped table-bordered"
datatable=""
dt-options="dtOptions"
dt-columns="dtColumns"></table>
The Response of Query:
{
"results": [
{
"id": 1,
"name": "party",
.....
},
....
],
....
}
U see i put DataProp to "results" coz results are a nested in object - beside are other infos like count of all parties etc...
ServerSide is a Grails application (but nevermind...)
My table is empty (data is loaded, but empty)... can u maybe explain me what is wrong?