I have a simple repeat.for:
<li repeat.for="item of items">${item}</li>
Currently I'm using: ${$parent.items.indexOf(item)}
. Is there a shorthand, something like {{$index}} in angular?
There is. Write this:
<li repeat.for="item of items">${$index} - ${item}</li>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With