October 2017
Intermediate to advanced
370 pages
8h 57m
English
The amp-live-list component is included with the following script:
<script async custom-element="amp-live-list" src="https://cdn.ampproject.org/v0/amp-live-list-0.1.js"></script>
The basic usage of amp-live-list is like this:
<amp-live-list id="my-amp-live-list" data-poll-interval="15000" data-max-items-per-page="20"> <button update on="tap:my-amp-live-list.update">Load more!</button> <div id="items"> <div id="item-0">...</div> <div id="item-1">...</div> ... </div></amp-live-list>
The amp-live-list element must include the following:
Read now
Unlock full access