3

I am new in angular 2 so please help me.

I want to implement angular 2 and angular 4 to get data from database and apply server side pagination on it.

1 Answer 1

5

There is a NPM package that handles this for you ngx-pagination

There are documents there that outline exactly how to get it working. You can see a live demo here, which includes a server side paging example with code

Sign up to request clarification or add additional context in comments.

3 Comments

which packages I have to installed?
All the information is in the links, it's just npm install ngx-pagination --save. See the links in my answer for details
C:\Users\mkumar2\Downloads\ngx-pagination-master\docs>npm install ngx-pagination --save C:\Users\mkumar2\Downloads\ngx-pagination-master\docs>npm start npm ERR! missing script: start npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\mkumar2\AppData\Roaming\npm-cache_logs\2017-12-04T12_22_5 4_250Z-debug.log

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.