AMP list. The amp-list component fetches dynamic content from a CORS JSON endpoint. The response from the endpoint contains data, which is rendered in the specified template.
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
src |
string | URL of list data | |
data-title |
string |
<optional> |
Used to name a form component when saved in Ampier |
max-items |
number |
<optional> |
Maximum of items will be shown |
Example
<m-list src="https://ampier.io/amp/get/123?key=mykey&format=json" max-items="3">
<div>[[comment]]</div>
</m-list>