title: Set focus on dynamic list (Angularjs way)
body: <p>I have input what change value of 'validaTag' when user press '/' (like a # on instagram).</p>
  
  <p>I want set focus on first element on this list and blur on input.</p>
  
  <p><strong>Model</strong>
                          </p>
  
  <pre><code>                        &lt;input type="text"  name="myAddress" ng-enter="chatCtrl.sendMsg(chatCtrl[tab]); chatCtrl[tab]=''; " ng-click="chatCtrl.getChatTab(tab);" ng-model="chatCtrl[tab]" class="input-chat" style="width: 95%" ng-change="checkkey(chatCtrl[tab])" &gt;
  
                          &lt;div ng-hide="!validaTag"&gt;
                              &lt;ul class="list-group tags_chat"&gt;
                                  &lt;li class="list-group-item" ng-click="enviarTexto(tag.descricao, tab)" ng-repeat="tag in alltags | filter:hashtag:strict | limitTo : 3" setFocus="$last"&gt;
                                      &lt;b &gt;{{tag.tag}}&lt;/b&gt; -
                                      {{tag.descricao}}
                                  &lt;/li&gt;
                              &lt;/ul&gt;
                          &lt;/div&gt;
  
  
                      &lt;/div&gt;
  </code></pre>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>  $scope.checkkey = function (text) {
      $scope.hashtag = '';
      $scope.alltags = '';
      $scope.frase = '';
  
      $scope.validaTag = text.includes('/');
      $scope.frase = text.substr(0, text.indexOf('/'));
  
      if($scope.validaTag == true){
        $scope.hashtag = text.substring(text.indexOf("/"))
        $.ajax({url:'blablabla',
        async: !1,
        type: "GET"
      }).done(function(response) {
              response = evalJson(response);
              $scope.alltags = response;
              $scope.alltags = $.map($scope.alltags, function(value, index) {
              return [value];
            });
          })
        }
    }
  </code></pre>