Angular gridParams does not show data

0

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();
            });
        }

});
    
asked by anonymous 26.04.2018 / 16:59

0 answers