Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hai, i could not able to do any functionalities in ng table (sorting, pagination,filter) how to i work, #1028

Open
srinathskriyatec opened this issue Dec 30, 2017 · 0 comments

Comments

@srinathskriyatec
Copy link

srinathskriyatec commented Dec 30, 2017

$scope.tableParams = new NgTableParams({
page: 1, // show first page
count: 10, // count per page
sorting: { firstname: "asc" }
}, {
filterDelay: 0,
getData: function(params) {
console.log(params)

    // ajax request to api
    return listService.getlistdata(params).then(function(response) {
    	console.log(response.data.res.inlineCount)
      params.total(response.data.res.length);
      return response.data.res;
    });
  }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant