0

I am trying to add autofocus to the first element in ng-repeat

<div class="border-row" {{$first?focus-autofocus:''}} ng-repeat="item in itemsList" >

But this doesn't work. I'm using https://github.com/obogo/angular-focusmanager. How can I go about adding this?

Kavya Shetty
  • 185
  • 2
  • 14
  • itemsList has divs that contains text and some conditional buttons – Kavya Shetty Apr 20 '15 at 04:50