0

Hi is there a way in Ember to lazy load stuff into a table? I am loading the first page initially but then as the user scrolls down I want to load ping the second page API call and add that into the table. Is there a way of doing that in Ember? A link to a tutorial will be highly appreciated. I cannot seem to find one

1 Answer 1

1

Ember-Table is a pre-built component that does exactly that.

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

4 Comments

Thanks GJK. but where do I add the logic for pinging the URLs here? I cannot find that in the API doc
There's a small example here that shows you something like that. I have to say though, you should already be familiar with Ember.js and lazy loading data before you tackle a problem like this.
GJK, by lazy loading data you mean using jQuery Promises right?
By lazy loading, I mean fetching the data via AJAX requests when it's needed and not before. You can accomplish that multiple ways. jQuery Promises is one way to do that, but since you're working with Ember, Ember-Data (or one of it's alternatives) would probably integrate nicer.

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.