I am new to amp and trying to build this page where i would fetch some items from api and then render its response in amp-list. On clicking any of the item from this list, i want to access its price and display it. what should i write in AMP.setState({selectedItemPrice: ????})
here is the body tag code snippet
<amp-list height=200 src="https://amp.gmail.dev/playground/public/ssr_amp_list">
<template type="amp-mustache">
<div tabIndex="{{id}}" role="button" class="title" on="tap:AMP.setState({selectedItemPrice: ?????})">{{name}}</div>
</template>
</amp-list>
<p [text]="selectedItemPrice">This is price of product</p>
I tried to use event object but still couldn't make it work