Personal I have an angularjs and an html:
The variable data is being filled correctly, however it is not working when you play to ctrl.gridParams.settings (). dataset, which is empty
angular
angular.module('app').controller('cmptEmailsEnviadosGrid', function($rootScope, $scope, messageBox, gatewayClient, appContext, NgTableParams, requestMonitor) {
var
ctrl = this,
dados= [];
carregar();
function carregar() {
load();
ctrl.gridParams = new NgTableParams({
count : 20
}, {
counts : [],
paginationMaxBlocks : 13,
paginationMinBlocks : 2,
dataset : dados
});
}
function load() {
dados= result.data.value;
ctrl.gridParams.settings().dataset = dados;
ctrl.gridParams.page(1);
ctrl.gridParams.reload();
});
}
});