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

Server side pagination #2

Open
shahzadthathal opened this issue May 17, 2016 · 5 comments
Open

Server side pagination #2

shahzadthathal opened this issue May 17, 2016 · 5 comments

Comments

@shahzadthathal
Copy link

How I can use server side pagination? I have tried very hard but no success and there is no code which help you complete server side pagination,sorting and searching using mongodb, nodejs, angularjs.

@brownsmart
Copy link

I might be of the mark, here but assuming your pushing data out as a table you could use https://datatables.net

I have used this in the past to sort, filter and paginate data.

Not fully sure your going to get Angular to do this as it being a single page application, but I am still a newbie at AngularJS so I could be wrong. Check the documentation for AngularJS I am sure it will have a method for providing this functionality.

@shahzadthathal
Copy link
Author

Hi,
Thank you for your reply.
I tried that but not success, may be a example of code can help me.

@brownsmart
Copy link

Hi @shahzadthathal

could you be more specific, what exactly did you try?

@shahzadthathal
Copy link
Author

Hi

I have built this site but now issue is searching is not working.

https://mean-app-admin.herokuapp.com/admin/#/admin/login
[email protected]
123456

@shahzadthathal
Copy link
Author

shahzadthathal commented May 17, 2016

You can fork this repository and see the search function in ProductService.

https://github.com/shahzadthathal/mean-app-admin

or see this file:

https://github.com/shahzadthathal/mean-app-admin/blob/master/services/product-service.js

the function list(req) is for pagination,(searching, sorting is not working)

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

2 participants