With amp-bind, we can trigger amp-list to update, without a page reload, based on a user action such as tapping a button or entering some text. To do this, we must bind to the URL of amp-list with the square bracket syntax, like this: [src].
When the user clicks the remove link next to an item in the cart, then we'll add the product_id to the amp-list URL. When the URL changes, amp-list will automatically fetch the content at the new URL and render it.
Let's think about this in terms of state, expressions, and data bindings:
- State: We'll add a property ...