DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR HTML
ngfor index
<ul> <li *ngFor="let item of items; let i = index" [attr.data-index]="i"> {{item}} {{i}} </li> </ul>
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#ngfor
#index
ADD COMMENT
Topic
COMMENT
Name
4+8 =
Submit