esvit / ng-table

Simple table with sorting and filtering on AngularJS
http://esvit.github.io/ng-table
BSD 3-Clause "New" or "Revised" License
2.77k stars 851 forks source link

Pagination "not" working, displaying data False #910

Closed atodicebear closed 8 years ago

atodicebear commented 8 years ago

Hey, after creating the Tabel with pagination it is showing right counted Pages for my Data but all Datas are shown on the first Page?

  this.$http.get('/api/dict_keys/all/' + 1 + '/' + 1) // Init
          .then(response => {
            this.langV = response.data;
            this.tableParams = new this.NgTableParams({page:1,count:10},{
              total: this.langV.length,
              getData: params =>
              {
                return this.langV
              }});
//or
/*
{
              total: this.langV.length,
              dataset: this.langV})
*/
//makes no difference
          });

Is there something I forgot because of the Recent changes or what did I or ngTable wrong?