Summary
In this chapter, we introduced a programming layer for AMP with amp-bind. This allowed us to create even richer and more interactive pages than would otherwise be possible within the confines of AMP's restrictions. Through the techniques in this chapter, we were able to build professional-grade e-commerce experiences. We saw how to build XHR searches with sorting and filtering, as well as autosuggest partial search matches. We saw how to improve our shopping cart by supporting XHR adding and removal of items from the cart.
In short, amp-bind opens up a whole new dimension for your AMP pages. It's not quite JavaScript, but it's powerful enough to deliver most of the functionality you'll need. However, when even amp-bind is not enough, ...
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