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, there's still another option: amp-iframe
. In the next chapter, we'll learn some further techniques that will help us fill the gaps when AMP doesn't quite fit our needs. With amp-iframe
we can include features and functionality not currently possible in...