How to access "$index" value inside listItemTemplate of ListView?

<Page loaded="pageLoaded" class="page" xmlns="">

	<ActionBar title="Home" class="action-bar">

	<ListView items="{{ englishAlphabets }}"  itemTemplateSelector="$index">
				<Label text="{{ $index +' --> ' + letter }}" textWrap="false" />


  1. Elements of array should be Objects . It won’t work with Plain array(. like [1,2,3,4])
  2. Add itemTemplateSelector="$index" in ListView Tag as shown in the code.

Playground Link: ListView Index


That’s really useful. Thanks for sharing a playground demo as well! :heart: