Chapter 10 Asynchronously Load Data from Many Sources
In the last chapter, we saw how using a materialized view made it easy to aggregate data from several different database tables. But what if data we need comes from more than one source? Do we collect data from all sources at the server, thus making the user wait for all of it to be available before seeing any of it? Or is there a way to show the user data as it comes in, updating the UI along the way?
The latter is a better user experience, and that’s what we’re going to explore here. We’ll use Angular’s asynchronous design to show users data as it comes in, rather than making them wait. We’ll use the angular-resource module to keep our code clean and clear, and keep our code decoupled ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access