Summary
In this chapter, we covered a lot of ground. We saw how to dynamically fetch and update content in a number of different ways, both automatically, on page load, or by user-triggered actions. With amp-list, we were able to show the contents of a shopping cart without requiring the user to trigger its display. It also gave us a mechanism to delete items from the cart. With amp-live-list, we were able to build automatically-updating pages that polled the server for updates, and inserted new items into the page depending on the update time.
In the next chapter, we'll further improve the e-commerce experience by looking at a very special AMP component: amp-bind. The amp-bind component gives us a basic programming layer for AMP pages so ...
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