-2

I want to create table using AngularJS. I'm getting table data from server(I use rest web service)

I want to make table as lazy loaded. Do you have any idea how to reach that ?

I mean if i have big data(too many row is database) and if i will return whole table in json format, front side seems to be frozen.

I need load first 100 row, create table with paginator, if user clicks next page on paginator angular calls web service again and shows next 100 rows in next page.

2
  • 1
    Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. Commented May 18, 2016 at 13:00
  • What does lazy loaded table mean? When should it be loaded? Commented May 18, 2016 at 13:07

1 Answer 1

1

If you want it done quick an painless, can I recommend to you DataTable? It takes the data and automatically makes a table out of it, with pages and limits that you can easily define. You can check the installation manual here, it is VERY easy to set-up and get going, and does what you need done for you automatically.

2
  • And how to implement server side ? Commented May 19, 2016 at 6:18
  • @zuri Either return your data as an html table or as a json object through Ajax. If you can be more specific I can help you, no problem. I'm currently using it on a project of mine and I don't mind showing you some code. Commented May 19, 2016 at 8:16

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.