In my ng-repeat, each repeated item contains an input box where autofocus is set. This causes autofocus to be applied to all items, but in iOS, there's a bug that auto focuses on the last input box instead of the first one.
To fix this issue, I need to conditionally set autofocus to true for the first input box:
<input autofocus="{{$first ? 'true' : 'false' }}" >
Does anyone know how to implement this using Angular?