0

Fairly new to javascript. I was wondering with the following tag, besides having to manually put in Ids, is there a way to set .focus() to the container (custom directive)? The custom directive is a container div that acts as a tile.

<tile class="ng-scope gridster-item" tilevalue="1" gridster-item="tile" row="0" col = "0" ng-repeat="tile in selectedTiles"> </tile>
KO12
  • 215
  • 1
  • 3
  • 10

1 Answers1

0

You'll need a focus attribute directive. e.g.

<tile class="ng-scope gridster-item" focus-directive tilevalue="1" gridster-item="tile" row="0" col = "0" ng-repeat="tile in selectedTiles"></tile>

Here's a related question on SO

Community
  • 1
  • 1
Dylan
  • 495
  • 1
  • 6
  • 19