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 that we can build even better, more interactive, and user-friendly pages.
Â
Â
Â