触发元素onload上的单击

时间:2017-01-05 13:34:32

标签: javascript angularjs

Angular.js

如何触发第一组的点击--->第一项--->首先'.preamatchGame'元素

<div class="first" ng-repeat="group in groups"> 
  <div class="second" ng-repeat="item in items">    
    <div ng-class='{active: $first && $parent.$first}'>
      <div class="prematchGame" ng-click="selectGame(prematchGame.id)"></div>
    </div>
  </div>
</div>

0 个答案:

没有答案